1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To combat forum spam, new accounts will need to make at least one (valid) post.
    Otherwise, we will periodically purge all users without posts or that haven't confirmed their account.

Am I doing something wrong?

Discussion in 'General Support' started by mikereynolds, Aug 22, 2005.

Thread Status:
Not open for further replies.
  1. mikereynolds

    mikereynolds New Member

    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 Files:

    • 1.gif
      1.gif
      File size:
      9 KB
      Views:
      315
    • 2.gif
      2.gif
      File size:
      7.6 KB
      Views:
      307
  2. Brian

    Brian EPC Developer Staff Member

    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?
     
  3. mikereynolds

    mikereynolds New Member

    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||-||- */ ?>
    
    
     
  4. Brian

    Brian EPC Developer Staff Member

    I'll take a look at this...
     
  5. Brian

    Brian EPC Developer Staff Member

    Try adding this between the code for each month:

    <?php unset($et); ?>
     
  6. mikereynolds

    mikereynolds New Member

    just got round to testing this - it worked.

    thanks a lot for your help
     
Thread Status:
Not open for further replies.

Share This Page