Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/local/bin/php
- <?php
- $connection = oci_connect($username = 'jmillard',
- $password = '4365Jfm1',
- $connection_string = '//oracle.cise.ufl.edu/orcl');
- $uname = $_POST["uname"];
- $pwd = $_POST["pwd"];
- //Checks if that instance of username/password exists
- $statementBool = oci_parse($connection, "SELECT EXISTS(SELECT * FROM member where username= '$uname' and password = '$pwd')");
- //Stores boolean in variable then outputs variable to check validity
- $validCheck = oci_execute($statement);
- echo "$validCheck";
- //Updates curren user with new login
- $statementLogin = oci_parse($connection, "UPDATE CurrentUser SET curUsername = '$uname'");
- header("http://www.cise.ufl.edu/~llantz/main.html");
- ?>
Add Comment
Please, Sign In to add comment