I seem to be having some trouble now. I have it set to display in 3 columns. But it all shows in 1 column. Here is the code:
<table cellpadding="6" cellspacing="1" border="0"
width="97%" align="center"
style="border-left: 1px solid rgb(90, 91, 92); border-right: 1px solid rgb(90, 91, 92);">
<tr>
<td class="alt1">
<?php
$sql = mysql_query("
SELECT *
FROM bookmarks
LEFT JOIN users AS users ON(bookmarks.uid = users.uid)
WHERE bookmarks.uid = users.uid
")
or die(mysql_error());
// keeps getting the next row until there are no more to get
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td class=\"alt1Active\" width=\"33%\">";
while($bookmark = mysql_fetch_array($sql))
{
switch ($bookmark['displayorder'])
{
// Print out the contents of each row into a table
case 1:
echo "<a href=\"http://" . $bookmark['link'] . "\">" . $bookmark['name'] . "</a><br />";
break;
echo "</td>";
echo "<td>blah blah blah</td>";
echo "<td class=\"alt1Active\" width=\"34%\">";
case 0:
echo "<a href=\"http://" . $bookmark['link'] . "\">" . $bookmark['name'] . "</a><br />";
break;
echo "</td>";
echo "<td>blah blah blah</td>";
echo "<td class=\"alt1Active\" width=\"33%\">";
case 2:
echo "<a href=\"http://" . $bookmark['link'] . "\">" . $bookmark['name'] . "</a><br />";
break;
}
}
echo "</td></tr></table>";
?>
</td>
</tr>
</table>
Any help would be appreciated, also this is my first attempt at a stand alone script so please explain in very good detail what I did wrong and what needs to be done to fix it.
Thanks in advance
Steve