This is my dbconnect.php and I believe it's fine
When I try to connect it and go to my site to login it says that access is denied for me when it's listed as all rights. The site I use said it just means my code failed to connect to the database. So did I do something wrong?
<?php
error_reporting( E_ALL & ~E_DEPRECATED & ~E_NOTICE );
if(!mysql_connect("mysql12.000webhost.com","******","******"))
{
die('oops connection problem ! --> '.mysql_error());
}
if(!mysql_select_db("dbtest"))
{
die('oops database selection problem ! --> '.mysql_error());
}
?>