Database Creation and PHP MySQLi Connection Script Tutorial

Database Creation and PHP MySQLi Connection Script Tutorial

Listening Video

Learn to create the Database on your host and write a modular PHP script for establishing connection to that database using the improved MySQLi extension. PHP and MySQL are the core data processing technologies of most popular social networking websites.
Lesson Code
<?php
$db_conx = mysqli_connect("localhost", "worldoi5_adam", "xxxxxxxx", "worldoi5_social");
// Evaluate the connection
if (mysqli_connect_errno()) {
    echo mysqli_connect_error();
    exit();
} else {
echo "Successful database connection, happy coding!!!";
}
?>

0 Response to "Database Creation and PHP MySQLi Connection Script Tutorial"

Post a Comment