Advertisement
Guest User

Untitled

a guest
Jun 18th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. $con = 'includes/conect_db.php';
  2. if(file_exists($con)) {
  3. include($con);
  4. }
  5.  
  6.  
  7. $login = " SELECT U.id, U.nome AS uNome, U.username, U.id_zp_rh, U.grupo, U.status FROM zp_user U WHERE ( U.username = '$user' AND U.password = '$password' ) AND ( U.status = 1 ) LIMIT 1 ";
  8.  
  9. try {
  10. $res = $db->prepare($login);
  11. $res->execute();
  12. }catch(PDOExecption $e) {
  13. echo 'O sistema está informando este erro: <br />
  14. <i class="f14">'.$e->getMessage().'</i>';
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement