Here is my code:
$result = mysql_query("SELECT DISTINCT myplay.* FROM myplay WHERE 1 ORDER BY track_vol ASC , track_play ASC");
echo mysql_error();
echo "<table width=100% class=outside>";
if ($result)
{
for ($i=0; $i < mysql_num_rows($result); $i +=2)
{
$row = mysql_fetch_array($result);
echo "<tr>";
echo "<td width=50% align=left class=con>" . $row['track_play'] . "</td>";
if ((mysql_num_rows($result) % 2) == 0)
{
$row = mysql_fetch_array($result);
echo "<td width=50% align=left class=con>" . $row['track_play'] . "</td>";
}
echo "</tr>";
}
}
echo "</table>";
Now this is displaying the info, but the issue is it appears like this:
track 1 track 2
track 3 track 4
I want it to display in this order:
track 1 track 3
track 2 track 4
another issue I am having is if the row has no info ie I have an odd number of records it doesnt show anything in the second column.
Any help would be appreciated