<?php
class DB
{
private $koneksi; //Menyimpan koneksi database MySQL
private $host = "localhost"; //Host database MySQL
private $user = "root"; //User name database MySQL
private $password = ""; //Password database MySQL
private $database = "namadatabase"; //Menyimpan database yang digunakan
function DB()
{
//Koneksi ke database MySQL
(Koneksi ke database MySQL gagal)');
}
}
?>
PD9waHAKY2xhc3MgREIgCnsKICAgIAogICAgcHJpdmF0ZSAka29uZWtzaTsgICAgICAgICAgICAgICAgLy9NZW55aW1wYW4ga29uZWtzaSBkYXRhYmFzZSBNeVNRTAogICAgcHJpdmF0ZSAkaG9zdCA9ICJsb2NhbGhvc3QiOyAgICAgICAgLy9Ib3N0IGRhdGFiYXNlIE15U1FMCiAgICBwcml2YXRlICR1c2VyID0gInJvb3QiOyAgICAgICAgICAgICAgLy9Vc2VyIG5hbWUgZGF0YWJhc2UgTXlTUUwKICAgIHByaXZhdGUgJHBhc3N3b3JkID0gIiI7ICAgICAgICAgIC8vUGFzc3dvcmQgZGF0YWJhc2UgTXlTUUwKICAgIHByaXZhdGUgJGRhdGFiYXNlID0gIm5hbWFkYXRhYmFzZSI7ICAgLy9NZW55aW1wYW4gZGF0YWJhc2UgeWFuZyBkaWd1bmFrYW4KICAgIAoKICAgIGZ1bmN0aW9uIERCKCkKICAgIHsKICAgICAgICAvL0tvbmVrc2kga2UgZGF0YWJhc2UgTXlTUUwKICAgICAgICAkdGhpcy0+a29uZWtzaT1teXNxbF9jb25uZWN0KCR0aGlzLT5ob3N0LCR0aGlzLT51c2VyLCR0aGlzLT5wYXNzd29yZCkgb3IgZGllICgnRXJyb3IgOiAnLm15c3FsX2Vycm9yKCkuJyAKICAgICAgICAoS29uZWtzaSBrZSBkYXRhYmFzZSBNeVNRTCBnYWdhbCknKTsKICAgICAgICBteXNxbF9zZWxlY3RfZGIoJHRoaXMtPmRhdGFiYXNlLCR0aGlzLT5rb25la3NpKSBvciBkaWUgKCdFcnJvcjogJy5teXNxbF9lcnJvcigpLicgKERhdGFiYXNlIHlhbmcgZGlwaWxpaCB0aWRhayBhZGEpJyk7CiAgICB9Cn0KPz4g