Avatar of kevbob650
kevbob650
Flag for United States of America 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->Connection,$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!
PHPOracle Database

Avatar of undefined
Last Comment
kevbob650

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
slightwv (䄆 Netminder)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Loganathan Natarajan

It is an issue of SELECT statement parameters or conditions you applied. Better post the full code of the statement.
kevbob650

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.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck