coder1.com

  • home
  • drupal articles
  • contact
Home

JQuery

JQuery Sortables with PHP and MySQL

Mike Milano — June 27, 2008 - 1:00am

[img_assist|nid=10|title=|desc=|link=none|align=right|width=100|height=71]This article will show you how to order a server-side list of fruit from a database using drag and drop behavior and then save them back to the database in order.

I recently worked on a project which required an unordered list to be re-ordered and then saved. I wasn't about to make users enter numbers next to each item so I looked toward JQuery's UI library.

Objective: We will display a list of fruit. The user can then drag the fruit and click a button to save the new order in the database.

  • JQuery
  • JQuery UI
  • MySQL
  • PHP
  • 4 comments
  • Read more
Syndicate content

Poll

Have you used any NoSQL Databases?:

User login

  • Request new password

Navigation

  • Recent posts

  • home
  • drupal articles
  • contact