2. Database Creation and PHP MySQLi Connection Script Tutorial




Lesson Code: http://www.developphp.com/video/PHP/Database-Creation-and-PHP-MySQLi-Connection-Script-Tutorial Learn to create the Database on your …

Original source


23 responses to “2. Database Creation and PHP MySQLi Connection Script Tutorial”

  1. when I upload page, then go to the address: This page isn't working http error 500, so it ends for me at this point. It worked in 2012 when I first tried it but now, I cant get past this point.

  2. <?php
    $servername = "localhost";
    $username = "root";
    $password = " ";

    // Create connection
    $conn = new mysqli($servername, $username, $password);

    // Check connection
    if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
    }
    echo "Connected successfully";
    ?>

Leave a Reply