SHARE
TWEET

Untitled

a guest Jun 17th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function valUser($item){
  2.     $query = "select * from usuarios where usuario = ? and password = ?";
  3.     $res = $this->bd->Execute($query, [$item[0],$item[1]]);
  4.     if (strcmp($res->status,"ok_query_success")==0){
  5.         $valor = $this->estado["success"]=$res->data;
  6.         print_r($valor);
  7.         if (condition) {
  8.             $this->estado["status"]="ok_log_in";
  9.         }else if(condition){
  10.             $this->estado["status"]="err_log_in";
  11.         }
  12.  
  13.         //$this->estado["success"]=$res->data;
  14.         //$this->getEstado();                
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top