mirror of
https://github.com/jakejarvis/spoons.git
synced 2026-07-29 07:05:20 -04:00
THE COMMIT OF ALL COMMITS
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
include('config.php');
|
||||
include('db_connect.php');
|
||||
|
||||
$order_array = explode(",", $_POST['order']);
|
||||
foreach($order_array as $key => $value) {
|
||||
echo $value . ' > ' . $key . "\n";
|
||||
mysql_query("UPDATE spooners SET order_num = " . $key . " WHERE id = " . $value) or die(mysql_error());
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user