redarrow Posted October 14, 2008 Share Posted October 14, 2008 $str==date wont valadate and hightlight that 14October why please help been at it 2 hours.... <?php $day=range(1,31); $month=array("january","febuary","march","april","may","june","july","august","september","October","november","december"); echo"<br><br><table width='1100px' border='4' align='center'> <tr><td align='center'><b>".date("l d F Y")."</b></table></tr></td>"; echo"<table width='1100px' border='4' align='center'>"; for($m=0; $m<12; $m++, $month++){ if($month[$m]==date("F")){ $month[$m]="<font color='red'>$month[$m]</font>"; } echo "<tr><td valign='middle' align='center' width='300px'><b>$month[$m]</b>"; for($d=0; $d<count($day); $d++){ $str=$day[$d].$month[$m]; if($str==(date("dF"))){ $str="<font color='blue'>$str</font>"; } echo "<td align='center' width='400px'>$str<b></b></td>"; } } echo"</table></tr></td>"; ?> Link to comment https://forums.phpfreaks.com/topic/128312-calander-wont-work-please-help/ Share on other sites More sharing options...
genericnumber1 Posted October 14, 2008 Share Posted October 14, 2008 echo $str right before you compare it with the value from the date function call... if it's what you expect, echo the value from the date function call. (or just echo them both off the bat) Link to comment https://forums.phpfreaks.com/topic/128312-calander-wont-work-please-help/#findComment-664696 Share on other sites More sharing options...
redarrow Posted October 14, 2008 Author Share Posted October 14, 2008 Everythink matches..... I caternated this >> $str=$day[$d].$month[$m]; but dosent match....... Link to comment https://forums.phpfreaks.com/topic/128312-calander-wont-work-please-help/#findComment-664698 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.