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