Page 1 of 1

Please Debug My Code!

Posted: Fri Jul 25, 2008 2:18 pm
by Thomas-T
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");
?>

Re: Please Debug My Code!

Posted: Fri Jul 25, 2008 6:45 pm
by ghurtado
Please use

Code: Select all

tags to format your code and make it easier to read.

What happens if you execute "SELECT * FROM table" directly on the database?

Re: Please Debug My Code!

Posted: Sat Jul 26, 2008 6:25 am
by WebbieDave
View the suggestions in your other post first to see if they solve the problem.