I send the data to the php processing page as follows:
$insert = mysql_query(
'INSERT INTO ' . $table . ' (' . substr($addfields,0,-1) . ') ' .
'VALUES (' . substr($addvals,0,-1) . ')');
I want to have:
if($insert): echo 'Message 1'; else: echo 'message2'; endif;
What should I do in my success: function () to display the message in <div id="result"></div>?
I tried:
success: function() {
$(
}
This code does not display the message in the div tag.
How to send data to a div?
source
share