/ Published in: PHP
Expand |
Embed | Plain Text
class MySQLDatabase { private $connection; function __construct() { $this->connect_to_database(); $this->set_charset(); $this->select_database(); } private function connect_to_database() { if (!$this->connection) { } } private function set_charset() { if (!mysql_set_charset(DB_CHAR, $this->connection)) { } } private function select_database() { { } } public function query($sql_query) { if(!$result) { } return $result; } public function sql_fetch_array($sql_array) { } public function clean_sql($item_to_sanitize) { } } $db = new MySQLDatabase();
You need to login to post a comment.
