I
I
irinavasiluk2021-07-10 20:41:57
PHP
irinavasiluk, 2021-07-10 20:41:57

What is the problem: Fatal error: Uncaught Error: Call to undefined function mysqli_connect() PHP8?

60e9dac6a1e95019556758.pngGood afternoon, I really hope that they can help me here. There is a registration form in which you need to enter a login password stored in the MySQL database. I did not write the PHP code, it was given ready-made, the task was to set up the connection. When trying to login, it gives the following error:

Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in D:\Server\bin\mysite\index.php:7 Stack trace: #0 {main} thrown in D:\Server\ bin\mysite\index.php on line 7 I

have already reviewed a bunch of videos and re-read many forums, but I did not find a solution, I uncommented the extensions in the php.ini file, mysqlnd 8.0.8 is installed. database access is correct. What could be the problem, I just have no idea. Please tell me what to do, how to decide where to look, what else to read or watch.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2021-07-10
@ThunderCat

https://www.php.net/manual/ru/function.get-loaded-...
https://www.php.net/manual/ru/function.phpinfo.php
in case of apache - restart apache. In case of php fpm - restart puff.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question