Salve,
dovrei passare i paramentri in una query oracle.
Questo è il mio codice:
$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 .... = ' + $_REQUEST["Name"]);
oci_execute($s);
echo "<TABLE BORDER= '1' style='background-color:white'>";
echo "<TR style='background-color:white'>";
echo "<TH>attributo</TH><TD>attributo</TD><TD>attributo</TD><TH>attributo</TH><TH>attributo</TH><TH>attributo</TH><TH>attributo</TH><TH>attributo</TH><TH>attributo</TH><TH>attributo</TH><TH>attributo</TH><TH>attributo</TH><TH>attributo</TH><TH>attributo</TH>";
while ($res = oci_fetch_object($s))
questo è l'errore che mi dà:
Warning: oci_execute() [function.oci-execute]: ORA-00900: invalid SQL statement in C:\workspace_php\ID_Pratica\test.php on line 5
Warning: oci_fetch_object() [function.oci-fetch-object]: ORA-24374: define not done before fetch or execute and fetch in C:\workspace_php\ID_Pratica\test.php on line 9
credo che il mio errore sia in questa riga $s = oci_parse($c, 'Select .... from ... where .... = ' + $_REQUEST["Name"]);