<?
        $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:[EMAIL PROTECTED]
Sent: Saturday, August 23, 2003 9: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