Blank screen with my php script
I'm going through 'Build your own database driven web site' by Kevin Yank, 4th edition.
I'm stuck in chapter 4 page 121
Ive copied everything, the only difference is Ive used my own web host to create a test site, but thought the only difference would be database name etc....
At any rate its not throwing up any errors at all, just a blank white screen.
Any help would be great thanks
$link = mysqli_connect('localhost', 'web81-johntrain', 'train567');
$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, 'web81-johntrain'))
$output = 'Unable to locate the joke databse.';
$output = 'Database connection established.';