I've made a php script to access my database...as far as I can see all login details are right but I get this error message: Access denied for user 'a5247024_thesps'@'10.1.1.36' to database 'maininf'
<?php
// Make a MySQL Connection
mysql_connect("mysql11.000webhost.com", "a5247024_thesps", "******") or die(mysql_error());
mysql_select_db("maininf") or die(mysql_error());
// Retrieve all the data from the "maininf" table
$result = mysql_query("SELECT * FROM maininf")
or die(mysql_error());
// store the record of the "maininf" table into $row
$row = mysql_fetch_array( $result );
// Print out the contents of the entry
echo "Name: ".$row['PUA_Name'];
?>
Can anybody please help? Many thanks.