Hello friends, how are you?
I am trying to connect to the database of xtream codes, but i don't have success. I uploaded my code on wwwdir/examples but shows an error which i have programmed when the operation is not successful: Connection failed: No such file or directory
As server name: localhost
As database name: xtream_iptvpro
Does someone know why i can not connect to the database? Has another server name?
Looking forward to a response and thank you in advance.
I am trying to connect to the database of xtream codes, but i don't have success. I uploaded my code on wwwdir/examples but shows an error which i have programmed when the operation is not successful: Connection failed: No such file or directory
As server name: localhost
As database name: xtream_iptvpro
Does someone know why i can not connect to the database? Has another server name?
Looking forward to a response and thank you in advance.
PHP:
<?php
$servername = "localhost";
$database = "xtream_iptvpro";
$username = "root";
$password = "password";
// Create connection
$conn = new mysqli($servername, $username, $password, $database);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
Last edited: