mail('some@email.com',$subject,'Beginning');
$db_connection = mysqli_connect('myremote.host.com','username','password','db_name');
mail('some@email.com',$subject,'Connected');
if (mysqli_connect_errno())
{
echo mysqli_connect_error();
mail('some@eail.com',$subject,'Error in Connection');
exit();
}
I am trying to connect to this database. I use mail() as a way to debug. I get the first mail "Beginning" but I can't get the mail "connected".
The same code I used in one of my other pages and it works fine. Why I can't get it to work on this page ? what am I doing wrong ?