koneksi database ErroR

php
class JConfig {
var $offline = ‘0’;
var $editor = ‘tinymce’;
var $list_limit = ’20’;
var $helpurl = ‘http://help.joomla.org’;
var $debug = ‘0’;
var $debug_lang = ‘0’;
var $sef = ‘0’;
var $sef_rewrite = ‘0’;
var $sef_suffix = ‘0’;
var $feed_limit = ’10’;
var $feed_email = ‘author’;
var $secret = ‘iVssD4xId7xzq9Rm’;
var $gzip = ‘0’;
var $error_reporting = ‘-1’;
var $xmlrpc_server = ‘0’;
var $log_path = ‘C:\\xampp\\htdocs\\anakwtn\\logs’;
var $tmp_path = ‘C:\\xampp\\htdocs\\anakwtn\\tmp’;
var $live_site = ”;
var $force_ssl = ‘0’;
var $offset = ‘0’;
var $caching = ‘0’;
var $cachetime = ’15’;
var $cache_handler = ‘file’;
var $memcache_settings = array();
var $ftp_enable = ‘0’;
var $ftp_host = ‘127.0.0.1’;
var $ftp_port = ’21’;
var $ftp_user = ”;
var $ftp_pass = ”;
var $ftp_root = ”;
var $dbtype = ‘mysql’;
var $host = ‘localhost’;
var $user = ‘root’;
var $db = ‘belajar’;
var $dbprefix = ‘jos_’;
var $mailer = ‘mail’;
var $mailfrom = ‘belajar@gmail.com’;
var $fromname = ‘belajar.co.cc’;
var $sendmail = ‘/usr/sbin/sendmail’;
var $smtpauth = ‘0’;
var $smtpsecure = ‘none’;
var $smtpport = ’25’;
var $smtpuser = ”;
var $smtppass = ”;
var $smtphost = ‘localhost’;
var $MetaAuthor = ‘1’;
var $MetaTitle = ‘1’;
var $lifetime = ’15’;
var $session_handler = ‘database’;
var $password = ”;
var $sitename = ‘belajar.co.cc’;
var $MetaDesc = ‘belajar adalah site yang di gunakan untuk saling tukar informasi’;
var $MetaKeys = ‘joomla,belajar’;
var $offline_message = ‘This site is down for maintenance. Please check back again soon.’;
}
?>

detaiks user and database name:

$mysql_host = "mysql5.000webhost.com";
$mysql_database = "a9570626_wtn";
$mysql_user = "a9570626_wtn";

apa yang musti du ubahnya biar bisa terkoneksi ke database agar dapat di akses???

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s