I want this to retrieve info from a MySQL DB and this returns nothing. I know that there are no problems with the DB, so it must lie in this code:
<?php
$host = "db.syzme.*******.com";
$user = "*****";
$password = "******";
$db_name = "**********";
$table_name = "********";
$link = mysql_connect ($host, $user, $password);
$result = mysql_db_query ("SELECT content FROM atlantis WHERE (id=$p)", $db_name);
echo "$result";
echo "that was it";
mysql_close ($link);
?>
<?php
$host = "db.syzme.*******.com";
$user = "*****";
$password = "******";
$db_name = "**********";
$table_name = "********";
$link = mysql_connect ($host, $user, $password);
$result = mysql_db_query ("SELECT content FROM atlantis WHERE (id=$p)", $db_name);
echo "$result";
echo "that was it";
mysql_close ($link);
?>