I’m misssing something, probably really small, i always do. could someone please tell me what is wrong.
I’m having this error:
[code]Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘,’ or ‘;’ in /home/masc/www/calender.php on line 31
on the bottom line of this code sample.
[code=php]
/*line 30*/if(($x==0) or ($x==7) || ($x==14) || ($x==21) || ($x==28) || ($x==35)){echo “<tr valign=’top’>”;}
/*line 31*/if(($x==6) or ($x==13) || ($x==20) || ($x==27) || ($x==34) || ($x==41)){echo “</tr>”;}
what I’m trying to do is make a table through a for statement and i’m having troubles with this or statement that puts an end table row tag at certain intervals in this table. here’s the full for statement for reference.
[code=php]for($x=0; $x==$mdays; $x++){
if(($x==0) or ($x==7) || ($x==14) || ($x==21) || ($x==28) || ($x==35)){echo “<tr valign=’top’>”;}
if(($x==6) or ($x==13) || ($x==20) || ($x==27) || ($x==34) || ($x==41)){echo “</tr>”;}
if($x>=$fd){
echo “<td class=’cell’ background=’tabletemplatesmall.gif’><span class=’date’>”.$x+1.” </span>”;
echo “<a href=”></a></td>”;}
else{
echo “<td class=’cell’><img src=’tabletemplatesmall.gif’></td>”;}
}