Skip to content
Snippets Groups Projects
Commit c4d914c7 authored by natrak's avatar natrak
Browse files

Adding some debug info.

parent 01993a66
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -7,6 +7,7 @@ function dbsave($dbase, $data, $id=0) {
if ($key == "passwd") { $query .= "$key=PASSWORD('". addslashes($value) ."'), "; }
else { $query .= "$key='". addslashes($value) ."', "; }
}
print($query);
$query = substr($query, 0, -2);
dbconnect();
if (!empty($id)) { mysql_query("UPDATE $dbase SET $query WHERE id=$id") or die(mysql_error()); return $id; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment