title: How to SELECT data from Oracle database using PHP
body: <p>How do I fetch the <code>EMPNO</code> and <code>ENAME</code> columns from the table called <code>emp</code>?</p>
  
  <p>This is my connection string: </p>
  
  <pre><code>if ($c = oci_connect("tharindu", "123456", "localhost/XE")) {  
     echo "Successfully connected to Oracle.";   
     oci_close($c);
  } else {  
     $err = oci_error();   
     echo "Oracle Connect Error " . $err['text'];
  }
  </code></pre>