Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$host = ""; /* Host name */
$user = ""; /* User */
$password = ""; /* Password */
$dbname = ""; /* Database name */
$con = mysqli_connect($host, $user, $password,$dbname);
// Check connection
if (!$con) {
die("Connection failed: " . mysqli_connect_error());
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment