Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $conn=oci_connect("SYSTEM","123456","localhost:1521/ORCL") or die ("Failed to connect to Oracle");
- $USERNAME = $_POST['USERNAME'];
- $PASSWORD = $_POST['PASSWORD'];
- $sql = "SELECT * FROM LOGIN WHERE USERNAME='$USERNAME' AND PASSWORD='$PASSWORD'";
- $sqlparse =oci_parse($conn,$sql);
- $check = oci_fetch_array($result);
- $result=oci_execute($sqlparse) or die(oci_error());
- if(isset($check)){
- echo "success";
- }else{
- echo "failure";
- }
- oci_close($conn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement