I got stuck at this. i am using hostinger for my website
$server = "localhost";
$user = ""; //Username
$password = ""; //Password
$database = ""; //Database
$connection = mysqli_connect($server,$user,$password,$database);
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
exit();
}
This is my code. i could not find a relevant answer. Thanks in advance.