MYSQLI Connection String

$host = "localhost";
$database = "sql_tutorial";// Change your database name
$username = "userid";      // Your database user id 
$password = "";      // Your password

//error_reporting(0);// With this no error reporting will be there
///// Do not Edit below //////
if (!$connection) {
    echo "Error: Unable to connect to MySQL.<br>";
    echo "<br>Debugging errno: " . mysqli_connect_errno();
    echo "<br>Debugging error: " . mysqli_connect_error();
We will use $connection variable in our script to access our database.
Visitors Rating
Your Rating

Post Comment This is for short comments only. Use the forum for more discussions.

HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 All rights reserved worldwide Privacy Policy Disclaimer