$connection=mysql_connect($db_host, $db_username, $db_password);
if (!=$connection) {
die ("Error ".mysql_error());
}
Rather it should be have been:
$connection=mysql_connect($db_host, $db_username, $db_password);
if (!$connection) {
die ("Error ".mysql_error());
}
I feel stupid, for sure, but also incredibly happy that it's not a problem with talking to MySQL (especially since I'm programming in a virtual environment, Linux, running on top of my Mac OSX (herp derp)).
If anyone in the future ever has problems displaying PHP (and gets what seems like the page unwilling to render when some of it isn't parsing correctly), check the Apache (or web server) error log, FFS.
EDIT: Also, the problem could have been this:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
If this happens, enter the following in the command line
- cd /etc/apache2/conf.d
- sudo touch fqdn
- echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
No comments:
Post a Comment