pornO
11-01-2001, 04:16 AM
on my site http://www.outbreaker.net i'm using ur calendar to have direct access to events on that day, everything works fine, BUT ;) i've got the problem that the date format in my mysql is dd.mm.yyyy. So if you klick the 23.th of october everything works fine. but if its the 3. or so (a one digit day) it cant find any event because it it searches then for date 3.11.2001 but should look for 03.11.2001. so i always need a two digit daydate. i tryed a bit around in the code but couldn't get it to work, maybe someone out there could help me. I would be very pleased.
Thank You
i show you the link code that submits the search criteria, its "dat=$cd.$mo.yr"
<?
for ($prow = 1; $prow<8; $prow++) {
if ($daycount==$tnum && $nt!="1" && $cd>0) {echo "<td width="25" background='images/stath$bgc[$daycount].gif'>$cd (index2.php?page=cal_events&dat=$cd.$mo.$yr&order=firma&wochentag=$evday[$prow])</td>";$daycount++;$cd++;}
else { ?>
<td width="25"<?if ($cd>0 && $cd<$nd) {echo " background='images/stat$bgc[$daycount].gif'>
$cd (index2.php?page=cal_events&dat=$cd.$mo.$yr&order=firma&wochentag=$evday[$prow])";$daycount++;} else {echo ">";} $cd++;?></td>
<? }} ?>
Thank You
i show you the link code that submits the search criteria, its "dat=$cd.$mo.yr"
<?
for ($prow = 1; $prow<8; $prow++) {
if ($daycount==$tnum && $nt!="1" && $cd>0) {echo "<td width="25" background='images/stath$bgc[$daycount].gif'>$cd (index2.php?page=cal_events&dat=$cd.$mo.$yr&order=firma&wochentag=$evday[$prow])</td>";$daycount++;$cd++;}
else { ?>
<td width="25"<?if ($cd>0 && $cd<$nd) {echo " background='images/stat$bgc[$daycount].gif'>
$cd (index2.php?page=cal_events&dat=$cd.$mo.$yr&order=firma&wochentag=$evday[$prow])";$daycount++;} else {echo ">";} $cd++;?></td>
<? }} ?>