 |
|
Code (PHP)
<?
$row = 3;
$col = 3;
$colname = array(' ','A','B','C','D','E','F','G');
$rowname = array(' ','1','2','3','4','5','6','7');
echo "<table border=1>";
for($i=0;$i<=$row;$i++){
echo "<tr>";
for($x=0;$x<=$col;$x++){
if($i == 0) echo "<td>{$colname[$x]}</td>";
else if($x == 0)
echo "<td>{$rowname[$i]}</td>";
else echo "<td>TEST</td>";
}
echo "</tr>";
}
echo "</table>";
?>
|
 |
 |
 |
 |
Date :
2014-01-28 14:13:34 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |