Mysqli_connect not recognized

Sukhen Dey
Sukhen Dey used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
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().

Author

Commented:
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
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
After changing 'php.ini', you normally need to restart the server to pick up the changes.
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
The current version of XAMPP for Windows comes with PHP 7.2.8.  https://www.apachefriends.org/index.html
David FavorFractional CTO
Distinguished Expert 2018

Commented:
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.

Author

Commented:
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.
As suggests David, you should run phpinfo.
this will confirm/infirm that mysqli is installed
mmmhhh... how did you chek that your sql server is running?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial