R4nk3d Posted October 10, 2008 Share Posted October 10, 2008 Ok, so I'm trying to complete this task: Use PHP to extract info out of a mysql database and display it on the page --- Check! Use JS to allow the user to change the order of the information displayed --- Need Help Then save the order theyre in and change the id of the item so it is now sorted correctly and saved into the mysql database --- Need Help I have been searching everywhere for the drag and drop codes but I am not able to find anything that shows me how to do it. I think after I get the drag and drop part I will be able to get it into the mysql database myself. If you guys could please give me a link to a good tutorial or show me how to do it on here, I would greatly appreciate it. Link to comment https://forums.phpfreaks.com/topic/127803-javascript-php-mysql/ Share on other sites More sharing options...
JasonLewis Posted October 10, 2008 Share Posted October 10, 2008 Did some quick Googling, here is what I turned up. It looks pretty helpful: http://www.isocra.com/2007/07/dragging-and-dropping-table-rows-in-javascript/ Link to comment https://forums.phpfreaks.com/topic/127803-javascript-php-mysql/#findComment-661728 Share on other sites More sharing options...
R4nk3d Posted October 10, 2008 Author Share Posted October 10, 2008 I agree with you Project, that looks very helpful. All of the other ones I've seen just gave you the code and don't explain how to do it. I will look at this again as soon as I come home from school. Thanks! Link to comment https://forums.phpfreaks.com/topic/127803-javascript-php-mysql/#findComment-661832 Share on other sites More sharing options...
Andy17 Posted October 10, 2008 Share Posted October 10, 2008 Here are two scripts I had bookmarked: http://www.javascriptkit.com/script/script2/sorttable/index.shtml http://www.javascriptkit.com/script/script2/tablefilter.shtml I believe you will find the first one more useful than the other one, though. Link to comment https://forums.phpfreaks.com/topic/127803-javascript-php-mysql/#findComment-662300 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.