diff --git a/web/pid_commit.php b/web/pid_commit.php
index 6f2d3c6b..ac50e255 100644
--- a/web/pid_commit.php
+++ b/web/pid_commit.php
@@ -31,16 +31,12 @@
}
//update the values
$query = "UPDATE $db_name.$db_keys_table SET ".quote_name($field_name)." = ".quote_value($val)." WHERE id = ".quote_value($id);
-//echo "
$query
";
- mysqli_query($con, $query) || die(mysqli_error($con));
+echo "\n$query\n";
+ mysqli_query($con,$query) || die(mysqli_error($con));
if($field_name == 'type') {
- $table_list = mysqli_query($con, "SELECT table_name FROM INFORMATION_SCHEMA.tables WHERE table_schema = '$db_name' and table_name like '$db_table%' ORDER BY table_name DESC;");
- while( $row = mysqli_fetch_assoc($table_list) ) {
- $db_table_name = $row["table_name"];
- $query = "ALTER TABLE $db_name.$db_table_name MODIFY ".quote_name($id)." ".mysqli_real_escape_string($con, $val)." NOT NULL DEFAULT '0'";
-//echo "
$query
";
- mysqli_query($con, $query) || die(mysqli_error($con));
- }
+ $query = "ALTER TABLE $db_name.$db_table MODIFY ".quote_name($id)." ".mysqli_real_escape_string($con, $val)." NOT NULL DEFAULT '0'";
+echo $query;
+ mysqli_query($con,$query) || die(mysqli_error($con));
}
echo "Updated";
} else {