Try this:
PHP Code:
<?php
error_reporting(-1);
ini_set('dispay_errors', TRUE);
#debug sttuff - saves re-typing
defined('jj'); ? NULL : define('jj'. '<br />');
defined('js'); ? NULL : define('jj'. ' ');
echo jj, __LINE__, js, js, __FILE__; die;
$link = mysqli_connect('localhost', 'web81-johntrain', 'train567');
if (!$link)
{
$output = 'Unable to connect to the database server.';
include 'output.html.php';
exit();
}
if (!mysqli_set_charset($link, 'utf8'))
{
$output = 'unable to set database connection encoding.';
include 'output.html.php';
exit();
}
Bookmarks