Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $tbl_name="login"; // table name
- // Connect to server and select database.
- $connect=odbc_connect('0901070','','');
- if (!$connect)
- {
- exit("Connection Failed: " . $connect);
- }
- // username and password sent from form
- $username=$_POST['username'];
- $password=$_POST['password'];
- $sql="SELECT * FROM $tbl_name WHERE username='$username' AND password='$password'";
- $result=odbc_exec($connect, $sql);
- if (!$rs)
- {exit("Error in SQL");}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement