private function _saveUserLog() {
$i = 0; $sql = "";
foreach ($this->_userLogData AS $field => $value) {
if ($this -> userData[$field] != $value) {
if ($i == 0) {
$sql = "INSERT INTO ".DB_USER_LOG." (userlog_user_id, userlog_field, userlog_value_new, userlog_value_old, userlog_timestamp) VALUES ";
}
$sql .= ($i > 0 ? ", " : "")."('".$this->userData[$field]."', '".$field."', '".$value."', '".$this->userData[$field]."', '".time()."')";
$i++;
}
}
if ($sql != "") { $result = dbquery($sql); }
}
private function _saveUserLog() {
global $userdata;
$i = 0; $sql = "";
foreach ($this->_userLogData AS $field => $value) {
if ($this -> userData[$field] != $value) {
if ($i == 0) {
$sql = "INSERT INTO ".DB_USER_LOG." (userlog_user_id, userlog_field, userlog_value_new, userlog_value_old, userlog_timestamp) VALUES ";
}
$sql .= ($i > 0 ? ", " : "")."('".$userdata['user_id']."', '".$field."', '".$value."', '".$this -> userData[$field]."', '".time()."')";
$i++;
}
}
if ($sql != "") { $result = dbquery($sql); }
}
Category Forum
Suspected Bugs and Errors - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions