0

It appears that I am unable to connect to the sqli server. I'm running XAMPP on arch. I've tried uncommenting extension=mysqli under /etc/php/php.ini but that doesn't seem to be doing anything. Here is my code:

<?php
$serverName = "localhost";
$userName = "root";
$userpwd = "";
$dbName = "databaseName";

$conn = mysqli_connect($serverName, $userName, $userpwd, $dbName);

if(mysqli_connect_errno())
{
    die("Connection Failed!" . mysqli_connect_error());
}
zylve
  • 1

0 Answers0