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");
?>
Please Debug My Code!
Moderator: General Moderators
Re: Please Debug My Code!
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?-
WebbieDave
- Forum Contributor
- Posts: 213
- Joined: Sun Jul 15, 2007 7:07 am
Re: Please Debug My Code!
View the suggestions in your other post first to see if they solve the problem.