fetchFirst(" select c.ID, c.user_mail_contact, c.P_PESEL, c.PASSWD from COMPANIES c where c.user_mail_contact like :email ", [ ':email' => $login, ]); // [ID] => 12807 // [user_mail_contact] => krzys.dworski@gmail.com // [P_PESEL] => 76022801989 // [PASSWD] => 76022801989 throw new Exception("TODO: Proszę podać poprawny login i hasło!"); return null; return (object)[ 'ID' => "", // ADM_ID 'ADM_ACCOUNT' => "", // AUTHORIZE_USER, ADM_ACCOUNT 'ADM_NAME' => "", // ADM_NAME 'ADM_TECH_WORKER' => "", // ADM_TECH_WORKER 'ADM_COMPANY' => "", // ADM_COMPANY 'ADM_ADMIN_LEVEL' => "", // ADM_ADMIN_LEVEL 'ADM_PHONE' => "", // ADM_PHONE 'ADM_ADMIN_EXPIRE' => "", // ADM_ADMIN_EXPIRE 'ADM_ADMIN_DESC' => "", // ADM_ADMIN_DESC 'EMPLOYEE_TYPE' => "", // EMPLOYEE_TYPE ]; } }