Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2.        
  3.         //error_reporting(E_ERROR | E_PARSE);
  4. //error_reporting(E_ERROR | E_PARSE);
  5. ini_set('display_errors', 1);
  6.         $conn = oci_connect('student', 'STUDENT', 'localhost/XE');
  7.         $id_intrebare= $_POST['textfield'];
  8.        
  9.         $sql = 'SELECT QUESTION FROM QUESTIONS where ID=:id_c';
  10.                
  11.  
  12.                 $compiled = oci_parse($conn, $sql);
  13.  
  14.                 oci_bind_by_name($compiled, ':id_c', $id_intrebare);
  15.                 oci_execute($compiled);
  16.                
  17.         oci_close($conn);
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement