This is inventory what i am using as you can see there are posted items in fields. I did the part which checks if the current slot in database is empty or not. If slot is with item it inserts this code:
<?echo '<img style="bottom:0px" src="7343/img/item/'.$p512_5_2_image.'" />';?
So inventory shows which item is in what field also which fields are empty and i can dragdrop my items on inventory. But ofcourse when i change item location or another words do dragdrop on diffrent field it stays there but when i refresh page it naturally will go back to the field which is in database. So how can i identify in which field i draged the item and update mysql with the data so when i refresh page it will be there where i dragged it.