I'm passing the following:
toCode:if(isset($_POST['posted'])) { $sec->update_login_settings($_POST['allow_logins'], $_POST['max_logins'], $_POST['lock_len']); }
No matter what I seem to do with the $lock_time variable (int) or otherwise, the value it returns is just blank.Code:function update_login_settings($allow, $attempts, $lock_time) { // Should't really need to slash as it's list data, but you never know! $allow = $this->doslash($allow); $attempts = $this->doslash($attempts); $lock_time = $this->doslash($lock_time); $allow = (int) $allow; $attempts = (int) $attempts; $lock_time = $lock_time * 60; die($lock_time); //Insert the data. //$this->query("UPDATE ".TBL_PREFIX."site_settings //SET allow_logins='$allow', max_login_attempts='$attempts', lock_length='$lock_time'"); }
Am I missing something obvious?





Bookmarks