global $glb_db_host;
global $glb_db_user;
global $glb_db_pw;
global $glb_db_name;
$glb_db_host = "localhost";
$glb_db_user = "a0mccpq_piksl";
$glb_db_pw = "&H#Hcc8I1jb4o!aO";
$glb_db_name = "a0mccpq_piksl_com_-_vol";
global $glb_site_name;
$glb_site_name = "Parting Shot";
?>
class mysqlConnect {
function mysqlConnect ($host, $user, $pw, $dbname) {
$this->host = $host;
$this->user = $user;
$this->pw = $pw;
$this->dbname = $dbname;
$link = mysqli_connect($host, $user, $pw, $dbname);
if ($link) {
return true;
}else{
return false;
}
}
function selectDB ($ht, $us, $pw, $db) {
$link = mysqli_connect($ht, $us, $pw, $db);
if (mysqli_select_db($link, $db)) {
return true;
}else{
return false;
}
}
function query ($q) {
$this->result = @mysqli_query($q);
$this->numRows = @mysqli_num_rows($q);
if ($this->result) {
return $this->result;
}else{
return $false;
}
}
}
?>
Miscellaneous: