- Code: Select all
$result = mysql_query("SELECT url FROM links WHERE id = '$i',$db");
The $db connection must be put as a second argument, and not inside the SQL string, so it should be:
- Code: Select all
$result = mysql_query("SELECT url FROM links WHERE id = '$i'" , $db);
Anyway I see you use the "/" to escape special characters (wrong), instead of "\" (right). above all in the last echo:
echo "/">";
that should be echo "\">"; to print the second double quote.
Hope it helps.
Leo.

