Salve,
devo estrarre dei dati all'interno del mio DB di Oracle.
questo è il mio codice:
<?php
$db_test = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localho st)(PORT=1521)) (CONNECT_DATA=(SID=xe)))';
$c = oci_connect('Username', 'Password', $db_test);
$s = oci_parse($c, 'Select from WHERE');//qui inserisco la mia query corretta
oci_execute($s);
while($row = sqlite_fetch_array($result,SQLITE_BOTH)){
echo "Nome: ".$row['2'].$cols['ID']."
";
}
SQLITE_CLOSE($sqldb);
?>
come output mi da il seguente errore:
Warning: sqlite_fetch_array() expects parameter 1 to be resource, null given in C:\workspace_php\Database\index.php on line 18
Warning: sqlite_close() expects parameter 1 to be resource, null given in C:\workspace_php\Database\index.php on line 21
helpme