mysql query

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
User avatar
elecktricity
Forum Contributor
Posts: 128
Joined: Sun Sep 25, 2005 8:57 pm
Location: Trapped in my own little world.
Contact:

mysql query

Post by elecktricity »

I was wondering if it was possible to display the results like this:

Code: Select all

<table border='0'>
<tr>
<td>result 1</td>
<td>result 2</td>
<td>result 3</td>
</tr>
<tr>
<td>result 4</td>
<td>result 5</td>
<td>result 6</td>
</tr>
</table>
it's confusing because in the middle of it all of a suddent there is a tr in there, just a note that it will continue throught more tr's, if this dosnt work I know that something like this would work:

Code: Select all

<table border='0'>
<tr>
  <td>
	<table border='0' width='33%'>
	<tr>
	<td>result 1</td>
	</tr>
	</table>
  </td>
  <td>
	<table border='0' width='33%'>
	<tr>
	<td>result 2</td>
	</tr>
	</table>
  </td>
  <td>
	<table border='0' width='33%'>
	<tr>
	<td>result 1</td>
	</tr>
  </td>
</tr>
</table>
and so on, so yea if anybody knows any links or info would be greatly appreciated.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Useful Posts wrote:Multi-column formatted output: PHP & MySQL formatting problem
Post Reply