After adding data, there is nothing in the database & lt ;? Phpinclude (& quot; conn. php & quot;); & nbsp; if (isset ($ _ POST [submit]) & amp; $ _ POST [submit]) & nbsp; {echo $ SQL & quot; insertintomessage (id, user, title, conte)
Include ("conn. php ");
If (isset ($ _ POST ['submit ']) & $ _ POST ['submit'])
{
Echo $ SQL = "insert into message (id, user, title, content, lastdata )".
"Values ('', '$ _ POST [user]', '$ _ POST [title]', '$ _ POST [content]', now ())";
Mysql_query ($ SQL );
Echo "published successfully ";
}
?>
------ Solution --------------------
Mysql_query ($ SQL) or die (mysql_error ());
------ Solution --------------------
Whether mysql_query () is successful or not, echo "published successfully" is returned"
------ Solution --------------------
Open the error so that you can make a judgment based on the error prompt. it seems that the code is correct. But it does not mean that the include part is normal.
------ Solution --------------------
Run the SQL statement to add content. Besides.