Home | Contact Us | AFOA Crews | About
2022 AFOA Officiating Crews

dbtype = $db_type; } function setCon($host, $user, $pass){ $this->db_hostname = $host; $this->db_username = $user; $this->db_password = $pass; } function setDB($db){ $this->database = $db; } function dbConnect(){ switch($this->dbtype){ case "mySQL": $this->db_conn = mysqli_connect($this->db_hostname, $this->db_username, $this->db_password,$this->database); break;; } return $this->db_conn; } function selectDb(){ switch ($this->dbtype) { case "mySQL": mysqli_select_db($this->db_conn, $this->database); break;; } } function dbClose(){ switch ($this->dbtype){ case "mySQL": mysql_close($this->db_conn); break;; } } function setQuery($input){ $this->query = $input; } function runQuery(){ switch ($this->dbtype){ case "mySQL": $this->result = mysqli_query($this->db_conn, $this->query); break;; } } function getResult(){ return $this->result; } function setTotalRows(){ $this->total_rows = $this->rows; } function getTotalRows(){ return $this->total_rows; } function setFetchedRows(){ $this->fetched_rows = $this->rows; } function getFetchedRows(){ return $this->fetched_rows; } function incrementFetchedRows(){ $this->fetched_rows = $this->fetched_rows + 1; } function sqlNumRows(){ switch ($this->dbtype){ case "mySQL": $this->rows=mysqli_num_rows($this->result); return $this->rows; break;; } } function sqlFetchRow(){ switch ($this->dbtype){ case "mySQL": $this->row = mysqli_fetch_row($this->result); return $this->row; break;; } } function sqlFetchArray(){ switch ($this->dbtype){ case "mySQL": $this->row = array(); $this->row = mysqli_fetch_array($this->result); return $this->row; break;; } } function sqlFetchObject(){ switch ($this->dbtype){ case "mySQL": $this->row = mysqli_fetch_object($this->result); if($this->row) return $this->row; else return false; break;; } } function sqlFreeResult(){ switch ($this->dbtype){ case "mySQL": $this->row = mysqli_free_result($this->db_conn, $this->result); return $this->row; break;; } } } ?>
Fatal error: Uncaught Error: Class "DB" not found in /home/austinfbftp/public_html/AFOACrewListing.php:42 Stack trace: #0 {main} thrown in /home/austinfbftp/public_html/AFOACrewListing.php on line 42