PHP connection error with Mysql via XAMPP

Asked

Viewed 20 times

0

The xamp is active, but this message appears:

Fatal error: Uncaught Error: Call to Undefined Function mysqli_connect() in C: wamp64T www projects feira_ita BD conexao.php:10 Stack trace: #0 C: wamp64T www projects feira_ita valida.php(3): include_once() #1 {main} thrown in C: wamp64T www projects feira_ita BD connectionon.php online 10

$servidor = "localhost";
$usuario = "root";
$senha = "";
$dbname = "db";

//Criar a conexao
$conn = mysqli_connect($servidor, $usuario, $senha, $dbname) or die("Falha na conexao: " . mysqli_connect_error());
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.