Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Am I doing something wrong?
Old 08-22-2005, 04:26 PM   #1
mikereynolds
Calendar User
 
mikereynolds is offline
Join Date: Aug 2005
Posts: 4
Default Am I doing something wrong?

Hello All,

I've setup my calendar page to show two months, however, the first event on the 2nd month always shows the event as being multiple on the ALT text (im using pop-ups rather than mouse over for now), even tho there is only one event (ive checked, deleted and re-added etc). The ALT text displayed is ">> MULTIPLE EVENTS <<". It does however show the correct category colour and doesnt say anything about being multiple on the pop-up.

If you navigate to make the 2nd month the first month so to speak, it shows as I would expect. Can anyone advise what I'm doing wrong?

I've attached a couple of screenshots which may help explain easier. The first screenshot shows September as my 2nd month and then the second shows September my 1st month. The same thing happens for October.

Sorry its kinda hard to explain the problem.

Also here is the entire code I'm using (the first half was taken from a previous thread which lets the visitor change the date)


Code:
<?php
$mo=$_REQUEST[mo];
$yr=$_REQUEST[yr];
if (!isset($mo)) $mo = date("m",time() - date('Z') + ($gmt * 3600));
if (!isset($yr)) $yr = date("Y",time() - date('Z') + ($gmt * 3600));
?>
    <p>Change the date if required: </p>
    <form name="form3" method="post" action="<?php echo $PHP_SELF ?>">
<select name="mo" id="mo">
<?php
for ($N=1; $N<=12; $N++) {
echo "<option value='$N'";
if ($N==$mo) echo " SELECTED";
echo ">$mth[$N]</option>";
}
?>
</select>
<select name="yr" id="yr">
<?php
for ($N=2000; $N<=2036; $N++) {
echo "<option";
if ($N==$yr) echo " SELECTED";
echo ">$N</option>";
}
?>
</select>
<br>
<input type="submit" name="Submit" value="Go">
</form>




<?php  		


echo "<table><tr>";
		
		echo	"<td align=\"center\">";
		require("../test/calendar/calendar.php"); 
		
	
	if (++$mo > 12) {
    $mo = 1;
    $yr++;
} 
		echo	"</td>";
		echo 	"<td width='25'></td>";
		echo	"<td align=\"center\">";
		require("../test/calendar/calendar.php"); 
		echo	"</td>";
		echo	"</tr>";
		echo    "</table>"
		?>
Apart from that it appears to be working a treat at the moment!
Attached Thumbnails
Click image for larger version

Name:	1.gif
Views:	307
Size:	9.0 KB
ID:	79   Click image for larger version

Name:	2.gif
Views:	300
Size:	7.6 KB
ID:	80  
 

Old 08-22-2005, 11:04 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Can you provide the exact date ranges that was used? Or, if using a flat-file database, attach the database file to this post or to a support ticket?
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 08-23-2005, 01:20 PM   #3
mikereynolds
Calendar User
 
mikereynolds is offline
Join Date: Aug 2005
Posts: 4
Default

Code:
<?php /* 2|2453623|2453632|00:00:00|00:00:00|Once||Available - £450 per week |Book now to avoid disappointment! |10|0||||0[4X||-||-3|2453633|2453653|00:00:00|00:00:00|Once||Available - £400 per week |Book now to avoid disappointment! |21|0||||0[4X||-||-4|2453654|2453660|00:00:00|00:00:00|Once||Booked |Sorry please check another date |7|0||||0[3X||-||-5|2453661|2453667|00:00:00|00:00:00|Once||Booked |Sorry |7|0||||0[3X||-||-6|2453602|2453608|00:00:00|00:00:00|Once||Available - £450 per week |Book now to avoid disappointment |7|0||||0[4X||-||-1|2453609|2453622|00:00:00|00:00:00|Once||Booked |Sorry the Villa is booked here |14|0||||0[3X||-||- */ ?>
 

Old 08-23-2005, 02:11 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

I'll take a look at this...
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 08-23-2005, 08:09 PM   #5
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Try adding this between the code for each month:

<?php unset($et); ?>
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 11-05-2005, 08:56 AM   #6
mikereynolds
Calendar User
 
mikereynolds is offline
Join Date: Aug 2005
Posts: 4
Default

just got round to testing this - it worked.

thanks a lot for your help
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ECP using wrong paths eikman General 8 09-07-2005 01:08 PM
whats wrong? lost all categories Andreas General Support 7 07-07-2005 06:01 PM
Event Manager Displays Wrong Dates... ViperX General Support 0 06-20-2005 01:51 AM
whats wrong? Andreas General Support 1 09-11-2004 11:54 AM
I must have done something wrong Kent General Support 10 08-24-2004 06:50 AM



All times are GMT -4. The time now is 06:52 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |