Jump to content


Photo

Generate Table Through Php [solved]


  • Please log in to reply
3 replies to this topic

#1 aeris130

aeris130
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 28 June 2006 - 08:42 PM

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?

#2 freakus_maximus

freakus_maximus
  • Members
  • PipPipPip
  • Advanced Member
  • 177 posts

Posted 28 June 2006 - 08:49 PM

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]

#3 Buyocat

Buyocat
  • Members
  • PipPipPip
  • Advanced Member
  • 267 posts

Posted 28 June 2006 - 08:51 PM

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.
Looking for some easy-to-use tools?  Try these, https://sourceforge....jects/utils-php -- I made them myself.  They're distinct tools which are easy to understand and use.  See some examples uses at http://www.anotherearlymorning.com

#4 aeris130

aeris130
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 28 June 2006 - 08:55 PM

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\" /]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users