help with html function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
red wolf
Forum Newbie
Posts: 11
Joined: Sun Feb 19, 2012 4:38 am

help with html function

Post 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?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: help with html function

Post by Celauran »

Add <table> outside the loop, and put your <tr> and <td> inside the loop.
red wolf
Forum Newbie
Posts: 11
Joined: Sun Feb 19, 2012 4:38 am

Re: help with html function

Post by red wolf »

can you please give me an example please?
Post Reply