+ Post New Thread
Results 1 to 5 of 5
Web Development Thread, PHP+MySQL Drag and Drop in Coding and Web Development; Hi, At present the PHP page reads the MySQL data and prints on screen and if the result if 'FREE' ...
  1. #1
    S_Hannah's Avatar
    Join Date
    Oct 2009
    Location
    Manchester
    Posts
    65
    Thank Post
    16
    Thanked 1 Time in 1 Post
    Rep Power
    0

    PHP+MySQL Drag and Drop

    Hi,
    At present the PHP page reads the MySQL data and prints on screen and if the result if 'FREE' it shows a clickable image for the user to book. I am looking for something that allows the user to drag the result they fund to another location with in the table. I.e. user has box 1 filled with their name, they can drag their name to box 9 and it saves it, so they can go back on the it will be their.

    If anyone knows where I can firn maybe a tutorial, or guide to get started with this, as I have looked and cannot see anything.

    Cheers.
    Stu

  2. #2
    InterwebsGuy's Avatar
    Join Date
    Jan 2011
    Posts
    220
    Thank Post
    57
    Thanked 21 Times in 21 Posts
    Rep Power
    11
    You need to read up on either some JavaScript (jQuery is a good call for this) or HTML 5 drag and drop.

    PHP has nothing to do with the dragging and dropping mark up, that will just handle the POST/GET requests from the JS.

    Google it for a gazillion tutorials.

  3. Thanks to InterwebsGuy from:

    S_Hannah (10th May 2012)

  4. #3
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Posts
    3,736
    Thank Post
    893
    Thanked 414 Times in 348 Posts
    Blog Entries
    12
    Rep Power
    85
    You can do this with HTML5 now

    http://html5demos.com/drag

  5. Thanks to zag from:

    S_Hannah (10th May 2012)

  6. #4
    S_Hannah's Avatar
    Join Date
    Oct 2009
    Location
    Manchester
    Posts
    65
    Thank Post
    16
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi,
    Thank you for the responses, it has given me an idea of where to start on where to look. The reason I asked about its intergration into PHP was because our current booking system is driven by this and runs the mysql queries
    and display through PHP.

    Thanks again,
    Stuart

  7. #5
    InterwebsGuy's Avatar
    Join Date
    Jan 2011
    Posts
    220
    Thank Post
    57
    Thanked 21 Times in 21 Posts
    Rep Power
    11
    Quote Originally Posted by S_Hannah View Post
    Hi,
    Thank you for the responses, it has given me an idea of where to start on where to look. The reason I asked about its intergration into PHP was because our current booking system is driven by this and runs the mysql queries
    and display through PHP.

    Thanks again,
    Stuart
    No problem.
    PHP would work fine, as would any server side language, it doesn't really matter what you use as generally when the item has been 'dropped', the d&d syntax will send a POST or GET request off to a script - PHP if you like - to handle the action. How the PHP script acts is entirely up to you, as it is just like handling any other form submission really.

    There is more to it, but in a nutshell that is how something like that works.

SHARE:
+ Post New Thread

Similar Threads

  1. Drag and drop buttons at runtime c#
    By localzuk in forum Coding
    Replies: 8
    Last Post: 8th October 2010, 12:52 PM
  2. Drag and drop for disabled student
    By clareq in forum How do you do....it?
    Replies: 7
    Last Post: 8th September 2010, 01:37 PM
  3. Drag and Drop broken in OWA
    By ranj in forum Windows
    Replies: 2
    Last Post: 9th September 2009, 11:17 AM
  4. Cant drag and drop
    By Millsy79 in forum Windows
    Replies: 4
    Last Post: 31st July 2008, 04:26 PM
  5. hotmail drag and drop not on Linux Firefox
    By ITWombat in forum *nix
    Replies: 1
    Last Post: 9th June 2008, 06:14 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •