Re: Looping information into a table

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

 



benifactor wrote:
i am creating a forum and i am having trouble getting the database information in to an html table

i believe it has somthing to do with the placement of the while loops because they repeat the segment of code over untill the statment returns false, thus adding extra html.. you guys are the experts so if you could help i would appreaciate it. i will give you the code and an example of how its shows up and then how i need it to show up and if you could point me in the right direction it would be awsome...

It sure is. You're printing out the heading over and over again inside the second loop.

try this code:

http://pastebin.com/637039

I don't know if it was a mail problem, but can I suggest you indent your code, it makes it so much easier to see where your loops are.

--
Postgresql & php tutorials
http://www.designmagick.com/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux