I watched your video series "How to Install Apache, MySQL, and PHP". And the installs were successful. However when I try to use PHP to connect to the MySQL database, it fails without an error message:
echo "connect.php 020!";
mysql_connect(DATABASE_HOST, DATABASE_USERNAME, DATABASE_PASSWORD)
or die("Error connecting to database: " . mysql_error() . "");
echo "connect.php 030!";
The first echo displays but nothing else displays. It just "dies" there. Is there a step or 2 that I am missing? Thanks.
P.S. DATABASE_HOST, DATABASE_USERNAME, DATABASE_PASSWORD are all valid.
mysql_connect fails to connect, fails to display error - just dies
Post a Reply
|Oldest Newest Rating|
· April 25, 2015
I found the answer here:
SQL & Databases
Everything SQL and Databases related in here!
|Bucky Roberts Administrator|