Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $conn= new PDO('pgsql: user=pranav dbname=pranav password=pranav');
- $uname= $_POST["Username"];
- $psq= $_POST["Password"];
- $sql= "select username from login where username='$uname' and password='$psw'";
- $result= $conn->query($sql);
- if(!empty($result) AND $result->rowCount()==1)
- {
- echo "Connection Successful";
- }
- else
- {
- "Connection Unsuccessful";
- }
- ?>
Add Comment
Please, Sign In to add comment