Funktioniert ebenfalls!

Code: Alles auswählen
$this->Record = mysqli_fetch_array($this->Query_ID, MYSQL_ASSOC);
Code: Alles auswählen
$this->Record = mysqli_fetch_array($this->Query_ID, MYSQLI_ASSOC);
Code: Alles auswählen
$this->Record = mysqli_fetch_array($this->Query_ID, MYSQL_ASSOC);
Code: Alles auswählen
function table_exists($table)
{
$this->connect();
$tables=mysqli_list_tables($this->Database); // FIXME SHOW TABLES FROM db
while (list($temp)=mysqli_fetch_array($tables)) {
// echo "BALU: $temp<br />";
if($temp == $table) return 1;
}
return 0;
}
Code: Alles auswählen
function table_exists($table)
{
$this->connect();
$tables=mysqli_query($this->Link_ID, "SHOW TABLES");
while (list($temp)=mysqli_fetch_array($tables)) {
if($temp == $table) return 1;
}
return 0;
}
Code: Alles auswählen
if (!empty($_SESSION['SID_user']['language']) && $_SESSION['SID_user']['language']!=$cpoSystem['language']) {
$translator = &new translate($_SESSION['SID_user']['language']);
} else {
$translator = &new translate($cpoSystem['language']);
}
Code: Alles auswählen
$message = '';
Code: Alles auswählen
$message = array();
Code: Alles auswählen
function connect()
{
if (0 == $this->Link_ID) {
$this->Link_ID = @mysqli_connect($this->Host, $this->User, $this->Password);
if (!$this->Link_ID) {
$this->halt('Database connect failed');
}
if (!mysqli_select_db($this->Link_ID, $this->Database)) {
$this->halt('cannot use database ' . $this->Database);
}
}
}
Code: Alles auswählen
function connect()
{
if (isset($GLOBALS['DB_LINK_ID'])) $this->Link_ID = $GLOBALS['DB_LINK_ID'];
if (0 == $this->Link_ID) {
$this->Link_ID = @mysqli_connect($this->Host, $this->User, $this->Password);
if (!$this->Link_ID) {
$this->halt('Database connect failed');
}
if (!mysqli_select_db($this->Link_ID, $this->Database)) {
$this->halt('cannot use database ' . $this->Database);
}
$GLOBALS['DB_LINK_ID'] = $this->Link_ID;
}
}