The issue occurs with this code
<?php
define('DB_USER','root');
define('DB_PASSWORD','censored');
define('DB_HOST','localhost');
define('DB_NAME','censored');
$dbc = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
?>
I have installed php7.0-mysqli but I still get this error message
PHP Fatal error: Uncaught Error: Call to undefined function mysqli() in /var/www/html/actions/create_account.php:29
Stack trace:
#0 {main}
thrown in /var/www/html/actions/create_account.php on line 29, referer: http://localhost/register.php
Here is phpinfo() output on mysqli.
What is going wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…