Now, obviously there is something wrong with my file but I can't figure out what it is (and neither can AceHTML Freeware's validation techniques which I have found to be useful when I couldn't debug something myself). At any rate under IE and FireFox v0.9.2 the file (linked below) doesn't show me anything, but when I open it under AceHTML's Internal browser, I get the following:
Here are all of the jokes from the database:
Error performing query on jokes:
'); } //display joketext while ( $row = mysql_fetch_array($result)) { echo ($row['joketxt'] ); } ?>
The initial line is simple HTML which should show up in the browsers no matter what, but they don't. The rest is an error stemming from:
//requesting the text from all the jokes
$result = @mysql_query('select joketxt from jokes');
if ( ! $result)
{
die('<p> Error performing query on jokes: </p>');
}
But if I copy+paste "select joketxt from jokes" it does what its supposed to. Does anyone have any ideas or even how I could get the actual error mysql is showing to give me some better insight into the problem?