Advertisement
Guest User

Untitled

a guest
Oct 4th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $dbuser = "[database username]";
  2. $dbpass = "[database password]";
  3. $db = "SSID";
  4. $connect = oci_connect($dbuser, $dbpass, $db);
  5.  
  6. if (!$connect) {
  7. echo "An error occurred connecting to the database";
  8. exit;
  9. }
  10.  
  11. $sqlTwo = "SELECT [condition] FROM [database table] WHERE [database row] = '[variable]'";
  12. $stmtTwo = oci_parse($connect, $sqlTwo);
  13. oci_execute($stmtTwo);
  14.  
  15. if(oci_fetch_array($stmtTwo)) { ... }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement