Here are a few links to help you drag and drop: http://geekswithblogs.net/AzamSharp/archive/2008/02/21/119882.aspx http://www.codeproject.com/KB/webforms/JQueryPersistantDragDrop.aspx It's very simple but you need to write code based on your specific application.
In the onDrop method, you need to write an Ajax request for the POST data that you want to save. The JQuery AJAX API is here: http://docs.jquery.com/Ajax/jQuery.post#urldatacallbacktype
The POST URL must reference a PHP script that will save the data. On the PHP side, you are connecting to the database:
<?php $dbc = mysql_connect('localhost:/private/tmp/mysql.sock', 'root', 'password') or die (mysql_error()); mysql_select_db('database_name'); ?>
Then you write the INSERT statement. This is the insertion expression for music shows:
$sql_insert = "INSERT INTO shows (date,venue,venueLink,location,comment,time,dateOrder,locComment,confirm_by) VALUES ('".$Date."', '".$Venue."', '".$VenueLink."', '".$Location."', '".$Comment."', '".$Time."', '".$dateSort."', '".$locComment."', '".$confirmAll."')";
$ The venue, for example, will be a variable in your AJAX mail request. You can get these variables from superglobal PHP files:
$Venue = $_POST['venue']
FYI: you can do this query much better because double quotes actually print variables ... I just copied and pasted some noob code that I found some time ago. You may worry about doing this quite late.