MySQL Abfrage: Fehler
Verfasst: 18.01.2012 14:48
Hi Leute.
Da bin ich wieder.
Ich habe soeben was versucht und bekommen dabei eine Fehlermeldung:
Mein Quellcode:
Wenn ich den Script ausführen will bekomme ich folgende fehlermeldung:
Fatal error: Cannot redeclare class dbal_mysql in C:\xampp\htdocs\phpbb\includes\db\mysql.php on line 490
Woran könnte das liegen?
Wäre sehr froh über eine Antwort
Danke
Da bin ich wieder.
Ich habe soeben was versucht und bekommen dabei eine Fehlermeldung:
Mein Quellcode:
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'config.' . $phpEx);
include($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
$db = new $sql_db();
$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport);
// We do not need this any longer, unset for safety purposes
unset($dbpasswd);
$sql_in = array(1,2,3,4,5);
$sql = 'SELECT count(*) AS anzahl
FROM phpbb_users
WHERE ' . $db->sql_in_set('group_id', $sql_in);
$user = $db->sql_query($sql);
$row = $db->sql_fetchrow($user);
$template->assign_vars(array(
'ANZAHL' => $row['anzahl'],
));
?>
Fatal error: Cannot redeclare class dbal_mysql in C:\xampp\htdocs\phpbb\includes\db\mysql.php on line 490
Woran könnte das liegen?
Wäre sehr froh über eine Antwort

Danke