Learning PHP - Problem in my code
Posted on 2009-02-20
I'm learning PHP and I'm on day 2 of training. For one of my exercises, I'm trying to create a multipurpose page that displays a list of jokes in the database and allows me to Add more jokes to it from a form.
But when I enter a joke into the form nothing happens and after checking the database the joke wasn't added either.
You can check the code below. I've commented it to make it quicker to scan.
Also, does anyone have suggestions for how to find these problems a little easier? I seem to spend 10 minutes writing the code and an hour trying to find the ; I forgot to add. I don't have an eye for finding these things yet.