function ErrorMsg() { if ($this->haserrorfunctions) { return odbc_errormsg($this->_connectionID); } else { return ADODBConnection::ErrorMsg(); } }
function check_username_no_sid($username, $escape = 1) { if ($escape) { $username = $this->SfStr->getSafeString($username, SAFE_STRING_DB); } else { $username = $this->SfStr->getSafeString($username, SAFE_STRING_ESC); } $query = "SELECT uid FROM {$this->CONF['db_tbl_prefix']}users WHERE username = {$username}"; $rs = $this->db->Execute($query); if ($rs === FALSE) { $this->error('Error checking for existing username: '******'uid']; } else { return false; } }