SHARE
TWEET

Untitled

a guest Oct 4th, 2017 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)) { ... }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top