joke date = CURDATE()";

if ( mysql_query($sql) ) {

echo(" & lt; P> Your joke has been added. & lt/P >; );

} Otherwise {

echo(" & lt; P> An error occurred while adding the submitted joke: "". mysql_error()。" .& lt/P >; );

}

I've always wanted others to recommend this method.

But now that you have made a mistake in this statement, you need to solve what the mistake is, so you must publish the output error message. That information is very important. You can tell at a glance what is wrong and how to modify it.