1 / 4
Computer Service
2 / 4
Networking Service
3 / 4
Web Development Service
4 / 4
Software Development Service
TNW - ICT Solutions
  • Home
  • Available Courses 
  • Available Services 
  • Website Samples 
  • Search Log In
  • 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.';
    }
    ?>