This is a discussion on unable to get result data using php within the DB2 forums, part of the Database Server Software category; --> Hello all, I am connecting to DB2 v. 8.1.4 using PHP 4.3.4 under Linux. The connection is local. I ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello all, I am connecting to DB2 v. 8.1.4 using PHP 4.3.4 under Linux. The connection is local. I can connect to the database, I can execute at least SELECT statements (haven't tried others), but I cannot access the results of the query no matter if I use odbc_fetch_into, odbc_fetch_array, odbc_fetch_row. But strangely I can get the result set count using odbc_num_rows. Somehow DB2 seems to not handle the PHP connection as a CLI connection because tracing is switched on for CLI. I verified that tracing works by successfully compiling and running the supplied sample CLI apps. The above scenario is for the ESE version of DB2. I have a second machine running the Personal Developer's Edition of DB2 and everything works fine there. There's almost no difference in the configurations. Any suggestion? Anyone seen this before? TIA for any help |