Re: [PHP-DB] table html with PHP

[email protected] (Emiliano Boragina)
Newsgroups php.db
Message-ID <[email protected]>
sorry again... thanks for your answer...

2010/6/15 Emiliano Boragina <[email protected]>

> sorry... why $i = 0 again?
>
> 2010/6/15 Systems <[email protected]>
>
> 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:[email protected]]
>> Sent: Tuesday, June 15, 2010 3:21 PM
>> To: [email protected]
>> Subject: [PHP-DB] 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
>>
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.