1
mirror of https://github.com/jakejarvis/spoons.git synced 2025-09-15 04:35:34 -04:00

sorting fix

This commit is contained in:
2017-07-16 19:47:55 -04:00
parent 2aaededd2d
commit 3eece2564a

View File

@@ -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));
}
?>