Jump to content

Archived

This topic is now archived and is closed to further replies.

aeris130

Generate Table Through Php [solved]

Recommended Posts

Basically, what I want to do is to query a table for several matches (mysql) and generate the output into a table. Every match is supposed to get its own <td>. The problem is, that I only want 4 <td>'s on every row. After that, I'd like to insert a </tr> and start a new <tr> before continuing to generate td's.

Is this possible?

Share this post


Link to post
Share on other sites
Check out the PHPFreaks FAQ/Code Snippet Repository

Ober's post will show you how this is done.

[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=95426\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=95426[/a]

Share this post


Link to post
Share on other sites
Aeris refer to this thread
[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=97058\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=97058[/a]
Check the post I left, it should cover everything.

Share this post


Link to post
Share on other sites
Exactly what I was looking for. Thanks a lot! [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.