Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $con = 'includes/conect_db.php';
- if(file_exists($con)) {
- include($con);
- }
- $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 ";
- try {
- $res = $db->prepare($login);
- $res->execute();
- }catch(PDOExecption $e) {
- echo 'O sistema está informando este erro: <br />
- <i class="f14">'.$e->getMessage().'</i>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement