Server,$this->User,$this->Pass); if (!$conn) $this->dbaseError("Datenbank-Verbindung fehlgeschlagen"); if (!mysql_select_db($this->Name,$conn)) $this->dbaseError("Datenbank-Anwahl gescheitert"); $this->ConID=$conn; return true; } function dbaseError($text) { $no = mysql_errno(); $msg = mysql_error(); echo "[$text] ( $no : $msg )
"; } function select($sql="") { if($GLOBALS["DEBUG"]) echo $sql."
"; if(empty($sql)) return false; if(empty($this->ConID)) return false; $results=mysql_query($sql,$this->ConID); if($no=mysql_errno()) $this->dbaseError("SELECT-Abfrage gescheitert"); if( (!$results) or (empty($results)) ) { mysql_free_result($results); return false; } for($count=0,$data =array();$row=mysql_fetch_array($results);$count++) $data[$count] = $row; mysql_free_result($results); return $data; } function insert($sql="") { if($GLOBALS["DEBUG"]) echo $sql."
"; if(empty($sql)) return false; if(empty($this->ConID)) return false; $results = mysql_query($sql,$this->ConID); if(!$results) return false; $id=mysql_insert_id($this->ConID); if($id) $results=$id; return $results; } function query($sql="") { if($GLOBALS["DEBUG"]) echo $sql."
"; if(empty($sql)) return false; if(empty($this->ConID)) return false; $results = mysql_query($sql,$this->ConID); if(!$results) return false; return $results; } } $db = new MySQL; if(!$db->init()) { echo "

Datenbank kann nicht ge÷ffnet werden!

"; exit; } ?>
Fatal error: Call to a member function select() on null in /var/www/res/u5000115868/quizmaker.de/htdocs/quizzer/inc/lib.php on line 88