Drag and drop with php & mysql

I could really do with some help on this one, so if anyone has any suggestions, please feel free to jump in.

I have a project i’m working on and it would be great to have a drag and drop feature. I’m using php and my database is mysql. I don’t have any code at this stage.

If I can, it’s explained below.

  • There is 6 empty boxes at the top.
  • There is boxes that can be dragged below, numbered 1 to 9.
    Once completed the form a submit button will be pressed and pattern saved into a table.

I want to be able to drag a number from the bottom into the empty box above as a “copy” of the number so the original number remains in the box below so I can drag it again if I want to use the same number for the next empty box.

Any help would be great.

The drag and drop feature you’re speaking of is client side through javascript and probably css.

The memory side of it can be stored in mysql via php and ajax but the actual page feature you’r looking or is not php driven. PHP runs on the server not the clients browser.