![]() |
php mysql using PEAR adodb connecting but returning null ressult
Hi there,
We have recently changed servers and I am having a problem getting php to return results from MySql using the PEAR adodb extension. PhpMyAdmin connects and returns results fine and I can even go to a SQL box, type in some SQL and get a result back. However, when I write my own php it connects but the return value from the query is null and I get an error when I try to return FetchRow() from it. Interestingly the Exception is NOT called. PHP Code:
Code:
[databaseType] => mysqlThe versions I am using are: PHP Version: 5.2.10 MySQL Server version: 5.0.89-community Andrew. |
Well, not to ask a silly question...
I have no idea what PEAR is, but if it uses Microsoft's ADODB, then I assume this is intended for a Windows server, yes? And if that is so, then have you installed MyODBC to connect MySQL to ADODB? |
Hi there,
PEAR is a collection of PHP extensions. The adodb is an extension which allows you to connect to many different types of database. It is written in PHP and can be run on any server using PHP. Our server is *nix. It works on our old server so I am trying to find out what settings could be different and nothing except some very minor PHP and MySQL upgrades (e.g. PHP 5.2.10 rather than 5.2.6). |
Fascinating. They use the same acronym the MS uses. "ADODB". Wonder what it stands for in PEAR? ("ActiveX Data Objects" or something like that with MS.)
|
| All times are GMT +1. The time now is 05:31 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.