Please help if you can - stumped!
Got to the stage (p.117) of connecting to MySQL with PHP.
Accessing the php file on localhost which contains:
$link = mysqli_connect('localhost', 'root', 'password');
$output = 'Unable to connect to the database server.';
if (!mysqli_set_charset($link, 'utf8'))
$output = 'Unable to set database connection encoding.';
if (!mysqli_select_db($link, 'ijdb'))
$output = 'Unable to locate the joke database.';
$output = 'Database connection established.';
i.e. http://localhost/connect/index.php or http://localhost/connect
produces a 500 server error.
This seems odd, as I have successfuly accessed and run other php filesin previous exercises in the book. The only difference with this one is that it references mysqli.
I can successfully connect to mysql via the command prompt, so that appears to working.