mirror of
https://github.com/jakejarvis/spoons.git
synced 2025-09-15 04:35:34 -04:00
sorting fix
This commit is contained in:
@@ -5,6 +5,6 @@ include('db_connect.php');
|
||||
$order_array = explode(",", $_POST['order']);
|
||||
foreach($order_array as $key => $value) {
|
||||
echo $value . ' > ' . $key . "\n";
|
||||
mysqli_query($conn, ("UPDATE spooners SET order_num = " . $key . " WHERE id = " . $value) or die(mysqli_error($conn));
|
||||
mysqli_query($conn, "UPDATE spooners SET order_num = " . $key . " WHERE id = " . $value) or die(mysqli_error($conn));
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user