Link to home
Start Free TrialLog in
Avatar of Sukhen Dey
Sukhen Dey

asked on

Mysqli_connect not recognized

I am using XAAMP in windows 10. I am getting errors on all Php_mysqli functions not recognized. Call to undefined function mysqli_connect(). It appears the DLL is not loading. I changed and activated the extension= php_mysqli.dll in PHP ini file several times and taken the “;” off. Can you give me some suggestions? Should I use LAMP or WAMP?
Avatar of David Favor
David Favor
Flag of United States of America image

Likely what's occurred is you've installed an outdated version of PHP.

Be sure you're running... this morning latest is... PHP-7.2.9.1 + your mysqli_*() calls will work.

You can verify which PHP is actually running by creating a phpinfo.php file which calls phpinfo().
Avatar of Sukhen Dey
Sukhen Dey

ASKER

Thanks, David. Let me try. I have installed the PHP 5+ version. It appears XAAMP does not have anything to do with it. If you have any other comments, please share. Dr. Dey
After changing 'php.ini', you normally need to restart the server to pick up the changes.
The current version of XAMPP for Windows comes with PHP 7.2.8.  https://www.apachefriends.org/index.html
PHP 5+ provides to little information...

For example, 5.6 will work, 5.5.X + below... depending on exact value of X + where you got your PHP packaged, may or may not work.

As Dave mentioned, current version of PHP... let's see... I see... PHP-7.2.9.1 installed for all my sites now, so you get the idea.

Keep in mind 5.6/7.0 EOL (end of life) January 2019.

Do yourself a favor, install PHP-7.2 for your project.
Thanks, Dave. I am trying everything. I think it is something in my PHP.ini file. I am not sure if you can either attach a file or send me some lines I need to adjust. I am sure, I am missing something. Thanks a million.
ASKER CERTIFIED SOLUTION
Avatar of Bernard Savonet
Bernard Savonet
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial