RE: [PHP-WIN] please help with table again
| From: | Duane Lakoduk | Date: | Sun, 24 Aug 2003 05:36:30 +0000 |
| Subject: | RE: [PHP-WIN] please help with table again | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-21224@lists.php.net to get a copy of this message | ||
Ok, try this;
<table border="1" width="100%">
<?php
$lastcol=0;
for($i=1; $i<4; $i++){
print "<tr>";
for($y=1; $y<6; $y++){
print "<td>".($y+$lastcol)."</td>";
}
print "</tr>";
$lastcol=$y;
}
?>
</table>
php, Duane
-----Original Message-----
From: Thomas Edward Lawrence [mailto:goodboy@fptnet.com]
Sent: Saturday, August 23, 2003 11:57 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] please help with table again
I want it echo 5 columns with 3 row , but it also echo numbers which
increase to follow columns like this , how I must write , please show me
again , thank you .
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php