foreach($_GET['listItem'] as $key=>$value) { $query= "UPDATE `category` SET `order` = '" . $key . "' WHERE `catid` ='" . $value . "'"; $result = mysql_query($query, $handle);
off topic: -------------------------
You should try giving yourself 30 minutes with a problem before posting on kirupaForum that you can't do a simple SQL update.
No, my mother is JavaScript and my father PHP.
Flash Transition Effects
Flash Effect Tutorials
Link to Us
Copyright 1999 - 2009
Powered by vBulletin® Version 3.8.4Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com