View Full Version : display back/same/next month same page
payola
11-26-2003, 08:16 AM
Calendar script works fine on site www.fmhs.net , except with my coding it does not display on same page. Click on either the back/same/next link and you will see what is wrong with my code-nothing wrong with calendar script. Working fine with mySQL databases. Have searched for the answer for 2 days (like to fix myself) but time to ask for help.
if it helps am calling with <p align="center"><?php
require 'http://fmhs.net/calendar/calendar.php';
?>
thanks
mike
Brian
11-26-2003, 08:45 AM
On the arrows and the dash, try changing the part of the code that reads $PHP_SELF with body.php.
Let me know if this helps.
payola
11-26-2003, 09:13 AM
It now loads in the same page...but does not go to previous month or next month...I must be missing something...suggestion?
Mike
Brian
11-26-2003, 09:31 AM
Originally posted by payola@Nov 26 2003, 10:13 AM
Now I need to go find a new glitch...to make it go back or forward.
Mike
I'm not sure I understand. Is there something else not working as expected?
payola
11-26-2003, 09:40 AM
Now loads in same page...but does not go back or forward...any suggestions?
Mike
Brian
11-26-2003, 10:49 AM
Are you using the calendar in a function?
Try changing:
require 'http://fmhs.net/calendar/calendar.php'
to read:
require 'http://fmhs.net/calendar/calendar.php?mo=$mo&yr=$yr'
payola
11-26-2003, 01:36 PM
It now appears to be working 100%...thanks to your suggestion Papa.
I used ...
<? require ("http://fmhs.net/calendar/calendar.php?mo=$mo&yr=$yr"); ?>
Mike
Brian
11-26-2003, 01:58 PM
Great! :D
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.