How to save drag and droped image as .jpg format to database using jquery and PHP?
<p>I am new to Jquery. trying to drag and drop image clone. but I am not able to save this drag image to my database using PHP. please someone refer some code.</p>

<p>here is my code:</p>

<pre><code>var test = 0;
$(document).ready(function(){
    $('#working-area .rotatable').live('dblclick', function(event) {
        $(this).remove();   
    });
});

$(document).ready(function(){
    $('#dhtmlgoodies_xpPane li .rotatable').draggable({appendTo: "working-area", helper: "clone" });

    $('#working-area .rotatable').live('click', function(event) {
        test = test + 90;
        $(this).rotate({ angle: test ,  appendTo: "#working-area"}).draggable();
    });

    $('#working-area .rotatable').live('mousemove', function(event) {
        $(this).resizable({appendTo: "#working-area"}).parent().draggable();
});
    $( "#working-area" ).droppable({
    activeClass: "ui-state-default",
    hoverClass: "ui-state-hover",
    accept: "#dhtmlgoodies_xpPane li .rotatable",
    drop: function( event, ui ) {
    &lt;!--$( this ).find( "#working-area" ).remove();--&gt;
    $(this).append($(ui.helper).clone().draggable());

    }
}).mousemove(function(e){

        var xx = e.pageX - this.offsetLeft;
        var yy = e.pageY - this.offsetTop;

          $('#status2').html("X = "+ xx +', '+"Y = "+ yy);
      });
});
</code></pre>
