BYO Database Driven Website

I am having all kinds of problems in Chapter 7. I can’t get the ‘/includes/’ or any other includes file to work. Also, the htmlout on my authors.html.php form does not work either.

include $_SERVER[‘DOCUMENT_ROOT’] . ‘/includes/’;

$result = mysqli_query($link, ‘SELECT id, name FROM author’);
if (!$result)
$error = ‘Error fetching authors from database!’;
include ‘error.html.php’;

while ($row = mysqli_fetch_array($result))
$authors = array(‘id’ => $row[‘id’], ‘name’ => $row[‘name’]);

include ‘authors.html.php’;

it is pointing to my local folder instead of my remote server where the database is configured! Thank you for the tip.

Do an echo of $_SERVER[‘DOCUMENT_ROOT’], and see if the include exists in the folder the script expects it to be