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:[EMAIL PROTECTED]
Sent: Saturday, August 23, 2003 11:57 PM
To: [EMAIL PROTECTED]
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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to