here is my db connection code and query code:
// Connecting, selecting database
$link = mysql_connect('MySQLA22.webcontrolcenter.com', 'shudson', '*******')
or die('Could not connect: ' . mysql_error());
mysql_select_db('henrybuilt') or die('Could not select database');
$sql = "SELECT ID, vcImageName FROM corp_images WHERE idPage = 6";
$query = mysql_query($sql) or die ("Error");
- There is no ‘or die’ error upon connecting, selecting, or querying
- There is no error_log file
- The sql query executes if I run it in my sql browser
What is going on???
It appears correct…try adding this adapted code from the manual to further debug and see what you learn: