Re: php and db/c
| From: | Mark Newnham | Date: | Sat, 04 Jan 2003 00:29:04 +0000 |
| Subject: | Re: php and db/c | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24536@lists.php.net to get a copy of this message | ||
jay@advmed.com wrote:
Hello everyone,We are running an old database system called db/c and attempting to access the information via php. We have managed to make an odbc connection to the databases, and can successfully retrieve the field names, and field counts. However, php insists the tables are empty, returning -1 (empty set) for the odbc_num_rows(). When we make a raw odbc connection to run a direct sql query on the data, it all shows up fine. There is some miscommunication between odbc and php that is eluding us. Any input or suggestions would be welcomed.Thank you, Jay Merritt jay@advmed.com Many odbc drivers do not return the correct value for odbc_num_rows. Have you tried odbc_result_all to see what comes back?