I created a Virtual host using WAMP Server.Its working.But its DB connection not working.

<VirtualHost *:80>
    ServerAdmin webmaster@kiwitravel
    DocumentRoot "c:/wamp/www/kiwi
    ServerName kiwitravel.localhost
    ErrorLog "logs/kiwitravel-error.log"
    CustomLog "logs/kiwitravel-access.log" common
</VirtualHost>

DB Connection

class Database {
    const DB_HOST = 'localhost';
    const DB_USER = 'root';
    const DB_PASSWORD = '';
    const DB_NAME = 'admin_kiwi';

    public function __construct() {
        $this->_dbconnect = mysql_connect(self::DB_HOST,self::DB_USER,self::DB_PASSWORD);
        if ($this->_dbconnect) {
            $db =  mysql_select_db(self::DB_NAME,$this->_dbconnect);
        } else {
            die(mysql_error());
        }       
    }       
}

this is the error
d322220a89cbd30e7129ec7ba4dee3f0

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.