Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement