Please login to start chat

ICT Solutions 2020-10-18 17:08:12
Category : php tutorials

Connecting to database server in php

The following is the example of connecting to database server in php.

<?php
$server = 'localhost';
$user = 'root';
$password = '';
$conn = mysqli_connect($server, $user, $password);
if($conn){
echo 'Successfull connected to the server.';
}else{
echo 'Connection Error.';
}
?>

Comments:

No comment to show.

Available Services
Download Android Application