Not connecting Database to Unix server

Operating System & Version
Linux

Stambuli

Registered
Mar 6, 2020
1
0
1
Malawi
cPanel Access Level
Root Administrator
<?php
$conn = new mysqli("127.0.0.1", "database user", password ", "database name") or die(mysqli_error());


mysqli_query("SET character_set_results=utf8",$conn);
mysqli_query("SET NAMES 'utf8'");
?>
 
Last edited by a moderator: