I am using PHP 4.1.1 and 4.3.1
according to the manual, the function OCIFetchStatement have 2-5 arguments which are
ocifetchstatement ( resource stmt, array &output [, int skip [, int maxrows [, int flags]]])
But when I tried this in my code
it says "Wrong parameter count for ocifetchstatement() "
So I reduced it into 4 (actually I need the 5th parameter more than the 4th or the 3rd)
it still says Wrong Parameter count
Then I tried 3 :
and it works.
it works with 2 parameters as well.
I want to use the 5th parameter which is the flags parameter where I can request the result to be Fetched by Rows.
Anyone have this experience before?
Regards,
Namida
according to the manual, the function OCIFetchStatement have 2-5 arguments which are
ocifetchstatement ( resource stmt, array &output [, int skip [, int maxrows [, int flags]]])
But when I tried this in my code
Code:
OCIFetchStatement($this->res,&$this->rows,0,-1,OCI_FETCHSTATEMENT_BY_ROW);
So I reduced it into 4 (actually I need the 5th parameter more than the 4th or the 3rd)
Code:
OCIFetchStatement($this->res,&$this->rows,0,-1);
it still says Wrong Parameter count
Then I tried 3 :
Code:
OCIFetchStatement($this->res,&$this->rows,0);
and it works.
it works with 2 parameters as well.
I want to use the 5th parameter which is the flags parameter where I can request the result to be Fetched by Rows.
Anyone have this experience before?
Regards,
Namida