<?php

    
// -- Include your database connection information here -- //
    
    // First we get the content that was passed to this script and assign it to a variable
    
$content $_POST['content'];
    
    
// Next we construct our query to insert this content into the database
    // You can also add the current date/time, an item id, etc into the table if you wish
    
$query "INSERT INTO auto_save_table VALUES('$content')";
    
mysql_query($query);
    
    
// Finally, we print out a success message to feed back to the AJAX script
    
echo 'Success! Your content was just auto-saved!';

?>