kevbob650
asked on
PHP Oracle Warnings
I'm getting PHP Warnings that I'm not able to debug and can't find any useful explanations when searching:
$sql = "select PRODUCT from table where ... ";
$rs = oci_parse($this->Connectio n,$sql);
oci_execute($rs);
if($row = oci_fetch_object($rs, OCI_ASSOC)) {
$myobjects->product = $row->PRODUCT;
}
PHP Warning: oci_execute(): ORA-00936: missing expression
PHP Warning: oci_fetch_object(): ORA-24374: define not done before fetch or execute and fetch in ...
Any assistance would be appreciated!
$sql = "select PRODUCT from table where ... ";
$rs = oci_parse($this->Connectio
oci_execute($rs);
if($row = oci_fetch_object($rs, OCI_ASSOC)) {
$myobjects->product = $row->PRODUCT;
}
PHP Warning: oci_execute(): ORA-00936: missing expression
PHP Warning: oci_fetch_object(): ORA-24374: define not done before fetch or execute and fetch in ...
Any assistance would be appreciated!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It is an issue of SELECT statement parameters or conditions you applied. Better post the full code of the statement.
ASKER
It was a syntax error that I missed. I need to check if the variables I am passing to the select statement are valid.