есть два класса
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- class Check {
- function login($company,$leqeb,$pass){
- $count = $this->db->sql("SELECT fc_id FROM " . DB_PREFIX . "id WHERE fc_name = '" . $this->db->escape($company) . "' and fc_id in (select fc_us from " . DB_PREFIX . "us where fc_login='" . $this->db->escape($leqeb) . "' and fc_sifre='" . $this->db->escape($pass) . "' limit 1) ")->say;
- if($count<0){
- //log error
- }
- if($count>0){$this->result[]='login_error';}
- }
- }