php does not see mysql from phpdesigner

Getting an error that mysqli_connect() is an undefined function.

I have wamp and phpdesigner installed - everything is running ok in wamp.
wamp php.ini has mysql extensions in it. phpdesigner ‘run’ is pointing to the php-cgi.exe and php.ini in the wamp php folder. Running a test file with phpinfo() in it, I cannot see a mysql section in the output, only a mysqlnd section. wamp extensions list shows mysql and mysqli ok.

Any ideas are welcome.

SOLVED. Even though the phpdesigner ‘Run’ environment is set to use the php.ini in wamp, if you run a test page and echo phpinfo() you can see that it is still using the php.ini in the phpdesigner directory. I had to manually edit that file to turn on mysqli extension and set the ext directory. Now it connects to mysql just fine.

You see sometimes just posting the problem the solution comes to you. :wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service