+ 1
How can i connect to data base mysql by sqli functions
4 Réponses
+ 4
Have a look at this example from PHP manual:
http://php.net/manual/en/function.mysqli-connect.php
Hth,
+ 2
thank you 😊
+ 1
You're welcome. Good luck.
0
<?php
$servername = "localhost" ;
$username = "username" ;
$password = "password" ;
$dbname = "myDB" ;
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die( "Connection failed: " . $conn->connect_error);
}
?>