get( [ 'UCASE(username)' => strtoupper( $username )], FALSE, TRUE); return $user; } public function checkUnique($recordID, $field, $fieldValue) { $this->sql = " SELECT * FROM users WHERE ucase( {$field} ) = '".strtoupper($fieldValue)."' AND id != {$recordID} "; $result = $this->get_query_row(); if( ! $result ) return TRUE; return FALSE; } }