You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
709 B
24 lines
709 B
<?php
|
|
session_start();
|
|
require_once('../BDD/SqliteDb.php');
|
|
require_once('../BDD/OracleDb.php');
|
|
header('Content-type: text/plain');
|
|
$db = new SqliteDb('o');
|
|
|
|
$n = new OracleDb();
|
|
//$conn = oci_connect('u_prems', '123456','localhost/orcl');
|
|
//$conn = oci_connect('meelaichao', 'meelaichao', 'kirov:1521/kirov');
|
|
$conn = $n->getConn();
|
|
$textbox = $_GET['textbox'];
|
|
|
|
$UserQuery = oci_parse($conn, $textbox);
|
|
$reponseUser = oci_execute($UserQuery);
|
|
$numLigne = 0;
|
|
while( ($oracleRow = oci_fetch_array($UserQuery, OCI_NUM))) {
|
|
$numLigne++;
|
|
echo '<strong> Ligne '.$numLigne.' : </strong>';
|
|
for($i=0 ; $i< sizeof($oracleRow) ; $i++){
|
|
echo $oracleRow[$i].' ; ';
|
|
}
|
|
echo '</br>';
|
|
} |