andz Posted December 6, 2007 Share Posted December 6, 2007 Hi everyone. I need help on how do i implement a drag and drop and interact it with database. here's a sample site: http://www.dhtmlgoodies.com/scripts/drag-drop-custom/demo-drag-drop-2.html every images/items will be taken from database, the user will be able to choose what items/images to drag and drop to another box. and after dragging, it will have a save button which will all the items/images that's being drag and drop will be saved to database. Quote Link to comment https://forums.phpfreaks.com/topic/80417-need-help-on-how-to-drag-n-drop-interact-with-php-and-mysql/ Share on other sites More sharing options...
PHP_PhREEEk Posted December 6, 2007 Share Posted December 6, 2007 The demo you provided is done in Javascript, not PHP... For the umpteenth time, PHP is server-side. A script runs from top to bottom and exits. That's it, no more... It cannot interact with the browser whatsoever after it has died off. PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/80417-need-help-on-how-to-drag-n-drop-interact-with-php-and-mysql/#findComment-407741 Share on other sites More sharing options...
andz Posted December 6, 2007 Author Share Posted December 6, 2007 here's another site. http://www.cyberdummy.co.uk/test/cart.php Quote Link to comment https://forums.phpfreaks.com/topic/80417-need-help-on-how-to-drag-n-drop-interact-with-php-and-mysql/#findComment-407768 Share on other sites More sharing options...
PHP_PhREEEk Posted December 6, 2007 Share Posted December 6, 2007 <script type="text/javascript">Droppables.add('cart', etc etc etc... Anything else? PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/80417-need-help-on-how-to-drag-n-drop-interact-with-php-and-mysql/#findComment-407774 Share on other sites More sharing options...
blueman378 Posted December 6, 2007 Share Posted December 6, 2007 all i can say is... TOLD!, no sorry but he did tell u guys, its only possible with javascript, with php once the page is loaded you cant do anything with php Quote Link to comment https://forums.phpfreaks.com/topic/80417-need-help-on-how-to-drag-n-drop-interact-with-php-and-mysql/#findComment-407785 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.