The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Associating form inputs and getting two parameters into PHP from form

I'm still puzzling over the "Delete data from database" code in Kevin Yank's book, "Build your own Database Driven Website Using PHP and MYSQL, 4th edition".

Here is my complete code. As it is, I can add and delete jokes, but on the webpage, I can only see the joke's id number and the delete button (no joke). In Kevin Yank's book, 4th edition, and online tutorial from the book, the SELECT code should be able to take more than one parameter. I have it set to only the id parameter in

PHP Code:

$result = mysqli_query($link, 'SELECT id FROM joke');

If I add a comma and joketext to the SELECT, like this:

PHP Code:

$result = mysqli_query($link, 'SELECT id, joketext FROM joke');

, my localhost server crashes. If anyone can help me figure this out, I'll buy the book and finish the tutorial. Otherwise, I'm just about ready to give up on PHP and MYSQL.