I have the following code which works just fine...
$result = mysql_query("SELECT * FROM test_prefixvehiclefeatures ORDER BY Feature ASC");
$count = 0;
echo "<table border='1'>
<tr>
<th>Select a Feature</th>
</tr>";
while($row = mysql_fetch_array($result))
{
$count = $count + 1;
echo "<tr>";
echo "<td>" . $row['Feature'] . "</td>";
echo "<td><img src='images/unchecked.png' height='30px' width='30px' id='features".$count."' alt='alttext' onmousedown='change".$count."()' style='cursor: pointer;'></td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
My problem is that it only loads 1 record per row as to where I would like to have 2 rows next to each other. I'm not sure how to achieve this, any ideas?
This is what I get -
Airconditioner mycheckboxhere
Climate Control 2ndcheckboxhere
What I would like is -
Airconditioner mycheckboxhere Climate Control 2ndcheckboxhere