Page 1 of 1

help with html function

Posted: Sat Mar 17, 2012 3:29 am
by red wolf
hello friends
i try to get some info from mysql database.
everything work great.
my question is about how i can do loop with table?
i mean i have code that print names one by one while while($row = $names['names']);
then the code print one by one all the names.
but i need to print a name in table in additional row field.
i tryed print and printf. but i have some problems
can somebody please write for me the right code for this please?

Re: help with html function

Posted: Sat Mar 17, 2012 5:30 am
by Celauran
Add <table> outside the loop, and put your <tr> and <td> inside the loop.

Re: help with html function

Posted: Sat Mar 17, 2012 5:34 am
by red wolf
can you please give me an example please?