RE: table html with PHP

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

 



I assume you're looking for something like:
<table>
    <tr>
    <?php
    $i = 0;
    while(array)
    {
        echo "<td>$varible[0]</td>";
        $i++;
        If ($i>1)
         {
            $i=0;
            echo '</tr><tr>';
        }
    }
   ?>
    </tr>
</table>

-----Original Message-----
From: Emiliano Boragina [mailto:emiliano.boragina@xxxxxxxxx] 
Sent: Tuesday, June 15, 2010 3:21 PM
To: php-db@xxxxxxxxxxxxx
Subject:  table html with PHP

Hello everyone,

I need to know how do I do a two columns table with a register per cell.

<table....>
<tr>
<?php
$i = 0;
while(array)
{
echo "<td>$varible[0]</td>";
}
j++
if j > 2
echo "</tr>"
?>
</table>

this dont work very well.
Thanks a lot


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



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux