Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php connect to data base

$conn = new mysqli($servername, $loginDB, $passwordDB);

// Check connection
if ($conn->connect_error) {
  die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
 
PREVIOUS NEXT
Tagged: #php #connect #data #base
ADD COMMENT
Topic
Name
1+8 =