Check that you're actually connecting to the MySQL server. mysql_connect (MySQL_Server_Hostname, Username, Password) or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db (MySQL_Database_Name); The Hostname might be localhost or dbserver17.dbserver.net or something along those lines. Try uploading this script and running it; <?php error_reporting (E_ALL); mysql_connect ('host', 'user', 'pass'); echo 'mysql_connect error: '.mysql_error ().'<br>'; mysql_select_db ('dbname'); echo 'mysql_select_db error: '.mysql_error ().'<br>'; $r = mysql_query ('select 1+1 as ans'); echo 'mysql_query error: '.mysql_error ().'<br>'; $r = mysql_fetch_assoc ($r); echo 'mysql_fetch_assoc error: '.mysql_error ().'<br>'; echo 'answer: (should be 2): '.$r['ans'].'<hr>Done.'; ?> PHP: Post the output here.