Jump to content

calander wont work please help


redarrow

Recommended Posts

$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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.