At the moment it is displaying as a single columm.
I would like it display across the page
| Details of prod 1 | Details of prod 2 |
| Details of prod 3 | Details of prod 4 |
| Details of prod 5 | Details of prod 5 |
not
| Details of prod 1 |
| Details of prod 2 |
| Details of prod 3 |
| Details of prod 4 |
Heres the link to my page
<?php //$id = $_REQUEST['product_id']; $query = "SELECT * FROM Goldframes"; //a query of my products $results = mysql_query($query) or die(mysql_error()); ?> <table width="458" border="0" cellpadding="0" cellspacing="0" class="bg_color"> <tr> <?php //variables $count = 0; while($s = mysql_fetch_array($results)){ $name = $s['product_name']; //gives each field a variable $desc = $s['product_desc']; $id = $s['product_id']; $image_src = $s['Image_Path']; //splitting the tables if($count % 2 <> 0) { extract($s); echo "<tr class=\"forgotext\">"; echo "<td width=\"200\" class=\"forgotext\"><span class=\"forgotext\"></span>"; echo $id; echo "</td>"; echo "<td width=\"258\">"; echo $name; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; echo "<img src=\"$image_src\"" .$id.">"; echo "</td>"; echo "<td valign=\"top\"><p class=\"newregistration\">"; echo $desc; echo "</p>"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td> </td>"; echo "<td> </td>"; echo "</tr>"; }else{ echo "<tr class=\"forgotext\">"; echo "<td width=\"200\" class=\"forgotext\"><span class=\"forgotext\"></span>"; echo $id; echo "</td>"; echo "<td width=\"258\">"; echo $name; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; echo "<img src=\"$image_src\"" .$id.">"; echo "</td>"; echo "<td valign=\"top\"><p class=\"newregistration\">"; echo $desc; echo "</p>"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td> </td>"; echo "<td> </td>"; echo "</tr>"; } $count++; } ?> </tr> </table>
I would really appreaciate your thoughts . Thankyou in advance