0
$stid = oci_parse('SELECT FIRSTNAME, LASTNAME, DESIGNATION, DEPARTMENT, BRANCH FROM USERS');  
while (($row = oci_fetch_array($stid, OCI_ASSOC + OCI_RETURN_NULLS
                        | OCI_RETURN_LOBS)) != false) {

            $result[] = $row;
            }

oci_fetch_array is returning only one row while there are many rows in the table.

2
  • Would you please share the statement? ($stid) Commented Nov 9, 2017 at 12:42
  • $stid = oci_parse('SELECT FIRSTNAME, LASTNAME, DESIGNATION, DEPARTMENT, BRANCH FROM USERS'); Commented Nov 9, 2017 at 12:43

1 Answer 1

1

it seems, your problem is related to | before OCI_RETURN_LOBS part.

Make your statement as below :

($row = oci_fetch_array($stid, OCI_ASSOC + OCI_RETURN_NULLS + OCI_RETURN_LOBS)) != false.

Sign up to request clarification or add additional context in comments.

1 Comment

It's not related to the mix of '+' and '|'. A quick test shows the mixed syntax working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.