<?php
echo "<table width='400' border='1'>";
for($i=1;$i<=5;$i++)
{
if($i%2==0)
{
echo "<tr>";
for($j=1;$j<=7;$j++)
echo "<td>2</td>";
echo "</tr>";
}
else{
echo "<tr>";
for($j=1;$j<=7;$j++)
echo "<td>1</td>";
echo "</tr>";
}
}
echo "</table>";
?>
0 comments:
Post a Comment