This code here doesnt seem to want to work

http://dev.mysql.com/tech-resources/articles/ddws/24.html

I can’t seem to get the code at the bottom of that page to work… Does that look right ? It seems like it wants to quit… After we enter the joke in the form, it seems like the php script just wants to quit without going to the logic of inserting…

Please assist…