I have this PHP page:
Hi please don't confuse with mysql_connect(); with mysqli_connect();
Try to change as follows
$conn=mysqli_connect("yourhost", "username", "password", "database-name") or die("initial host/db connection problem");`
Then if its connected then pass your query with
mysqli_query($conn, "your query string") or die ("query not executed");`
Now it works fine! (mods, removed a to quer.r.y)