1
mirror of https://github.com/jakejarvis/spoons.git synced 2025-10-22 20:34:29 -04:00

prep for move to heroku w/ composer info

This commit is contained in:
2017-07-16 12:35:31 -04:00
parent bb8ca88e79
commit db89ee5fe3
183 changed files with 93387 additions and 93305 deletions

10
public/sort_save.php Normal file
View File

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