Commit c4d914c7 authored by natrak's avatar natrak
Browse files

Adding some debug info.

parent 01993a66
...@@ -7,6 +7,7 @@ function dbsave($dbase, $data, $id=0) { ...@@ -7,6 +7,7 @@ function dbsave($dbase, $data, $id=0) {
if ($key == "passwd") { $query .= "$key=PASSWORD('". addslashes($value) ."'), "; } if ($key == "passwd") { $query .= "$key=PASSWORD('". addslashes($value) ."'), "; }
else { $query .= "$key='". addslashes($value) ."', "; } else { $query .= "$key='". addslashes($value) ."', "; }
} }
print($query);
$query = substr($query, 0, -2); $query = substr($query, 0, -2);
dbconnect(); dbconnect();
if (!empty($id)) { mysql_query("UPDATE $dbase SET $query WHERE id=$id") or die(mysql_error()); return $id; } if (!empty($id)) { mysql_query("UPDATE $dbase SET $query WHERE id=$id") or die(mysql_error()); return $id; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment