Skip to content

Instantly share code, notes, and snippets.

@paulohenriquesn
Created December 11, 2015 12:19
Show Gist options
  • Save paulohenriquesn/5002487078c729b41481 to your computer and use it in GitHub Desktop.
Save paulohenriquesn/5002487078c729b41481 to your computer and use it in GitHub Desktop.
Connect PHP/MYSQL
<?php
$servername = "localhost";
$username = "username";
$password = "password";
$conn = new mysqli($servername, $username, $password);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment