I\'ve been looking all day to find a way to insert some data into my database and then show the new data in the list of already existent data on my webpage.
I know t
You can send anything in that property. Try this: js
$.ajax({
url: "messages.php",
type: "POST",
data: 'show=content',
success: function(data) {
$('#output').html(data);
},
});
messages.php
if(isset($_POST['show']) && $_POST['show']=='content') {
// rest of your code goes here..
}
One more thing. Use MySQLi instead of MySQL as it's a deprecated extension now.