Please Debug My Code!
Posted: Fri Jul 25, 2008 2:18 pm
What the hell is wrong with this code??? It's not displaying ANYTHING in the browser! I've connected to the db, but I've obviously messed something up. PLEASE HELP!
mysql_select_db("db",$con);
$result = mysql_query("SELECT * FROM table");
while($row = mysql_fetch_array($result));
{
echo "<a href=\"review.php?id=" . $row['id'] . "\">";
echo $row['developer'] . "-" . $row['name'] . "</a>";
echo "<br /><hr />";
}
mysql_close($con);
include("footer.php");
?>
mysql_select_db("db",$con);
$result = mysql_query("SELECT * FROM table");
while($row = mysql_fetch_array($result));
{
echo "<a href=\"review.php?id=" . $row['id'] . "\">";
echo $row['developer'] . "-" . $row['name'] . "</a>";
echo "<br /><hr />";
}
mysql_close($con);
include("footer.php");
?>