Results 1 to 18 of 18
Thread: Blank screen with my php script
Mar 15, 2012, 10:06 #1
- Join Date
- Sep 2007
- 0 Post(s)
- 0 Thread(s)
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.
$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.';