Page 1 of 1

mysql query

Posted: Fri Oct 14, 2005 9:08 pm
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.

Posted: Fri Oct 14, 2005 9:10 pm
by feyd
Useful Posts wrote:Multi-column formatted output: PHP & MySQL formatting problem