I am currently connecting to a mysql database and displaying the data in a table via php.
My problem is this: I need the data to show in a table 5 columns wide (ie. 5 records) and then continue on the next row in the same way.
This is what the html code looks like - it is running within a print command in a while statement.
Code: Select all
<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td height=\"25\">
</td>
</tr>
<tr>
<td valign=\"middle\" align=\"center\">
<table width=\"90\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">
<tr>
<td class=\"thumb_border\"><img src=\"products/mags-thumbs/$code.jpg\" width=\"90\" height=\"92\"></td>
</tr>
<tr>
<td class=\"text\">Code: $code</td>
</tr>
<tr>
<td class=\"text\">Price: $price</td>
</tr>
<tr>
<td class=\"text\">Sizes: $size1</td>
</tr>
</table>
</td>
</tr>
</table>HawleyJR: Welcome to DevNet ~ Please use tags when Posting PHP Code In The Forums