RE: [PHP-WIN] please help with table again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux