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

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

 



<?
	$max_cols = 5;
	$max_values = 15;

	echo "<table>";
	
	$max_rows = floor(bcdiv($max_values,$max_cols,2));
	$counter = 0;
	
	for($schleife=0; $schleife<$max_rows; $schleife++){
		echo "<tr>";
		
		for($schleife_cols=0; $schleife_cols<$max_cols; $schleife_cols++){

			$counter++;
			
			echo "<td>".$counter."</td>";
		}
	}
	
?>

have fun

-----Original Message-----
From: Thomas Edward Lawrence [mailto:goodboy@fptnet.com]
Sent: Saturday, August 23, 2003 9: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