Skip to content

Instantly share code, notes, and snippets.

@wichaksono
Created January 27, 2018 05:29
Show Gist options
  • Save wichaksono/d4e0b1e7c323b38b1dee76e0acc4b16d to your computer and use it in GitHub Desktop.
Save wichaksono/d4e0b1e7c323b38b1dee76e0acc4b16d to your computer and use it in GitHub Desktop.
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '';
$dbname = 'votes';
$connect = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
if ($connect->connect_error) {
die('Error Koneksi : ' . $connect->connect_error);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment