First, let me state I'm a newbie. I'm in the second chapter of "PHP and MySQL Web Development." You build a script in the book, and mine worked just fine yesterday. Now it looks like none of the PHP code is being processed. That script is a little long, so I'll just show my test script to show what's wrong. The top 3 lines are taken from the self-help portion of this website.
The result is
MySQL Error: ' .mysql_error(). ''); echo '
'.'basement'.'
'; ?>
with a <hr> below the MySQL line.
Anybody have a reason it stopped working? I don't think I changed anything, and it was working yesterday.
Code:
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
mysql_query($query, $link_id) or die('<hr />MySQL Error: ' .mysql_error(). '<hr />');
echo '<p>'.'basement'.'</p>';
?>
The result is
MySQL Error: ' .mysql_error(). ''); echo '
'.'basement'.'
'; ?>
with a <hr> below the MySQL line.
Anybody have a reason it stopped working? I don't think I changed anything, and it was working yesterday.
Comment