Hi i have create a function in db class
FUNCTION DB_Class($dbname, $username, $password) {
$this->db = MYSQL_CONNECT ('localhost', $username, $password)
or DIE ("Unable to connect to Database Server");
MYSQL_SELECT_DB ($dbname, $this->db) or DIE ("Could not select database");
}
how can i show the error message in js alert in this function on connection *fails*
try