I'm totally new to the world of mysql / php, but I've been following kevin's book in detail. I've downloaded his code, but I can't seem to get chapter 6 working -- and this is the most important chapter. If I start with admin.html, and click on jokes.php, I get the correct output for manage jokes - the php seems to be working. But if I click on newjoke.php, the php seems to stop - I get the following:
You must choose an author " . "for this joke. Click 'Back' " . "and try again.
"); exit(); } $dbcnx = mysql_connect("localhost", "root"); mysql_select_db("jokes"); $sql = "INSERT INTO Jokes SET JokeText='$joketext', JokeDate=CURDATE(), AID='$aid'"; if (@mysql_query($sql)) { echo("
New joke added .......(I think you get the idea)
It's as if the php has stopped and only the html is working. Any clues what I'm doing wrong or where I can turn for help?





and then it's frustrating when the code doesn't work...



Bookmarks