Verfasst: 07.09.2003 19:44
ja, ich habe in meiner db auf sql gedrückt und code eingefügt!?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
if ( $userdata['user_level'] != ADMIN )
message_die(GENERAL_ERROR, "You are not authorised to do this.");
$sql = "CREATE TABLE " . $table_prefix . "bedankomat (
thx_id smallint(11) NOT NULL auto_increment,
user_id smallint(11) NOT NULL default '0',
topic_id smallint(11) NOT NULL default '0',
PRIMARY KEY (thx_id))";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, "<font color=\"red\">error inserting table (<b>" . $table_prefix . "bedankomat</b>).</font>", "", __LINE__, __FILE__, $sql);
}
else
{
message_die(GENERAL_MESSAGE, "<font color=\"green\">table (<b>" . $table_prefix . "bedankomat</b>) created successfully.</font><br /><br /> <b>Now, delete this file.</b>", "", "", "", "");
}
?>Code: Alles auswählen
CREATE TABLE `phpbb_bedankomat` (
`thx_id` smallint(11) NOT NULL auto_increment,
`user_id` smallint(11) NOT NULL default '0',
`topic_id` smallint(11) NOT NULL default '0',
PRIMARY KEY (`thx_id`)
) TYPE=MyISAM; Code: Alles auswählen
Could not obtain user-bedankomat information
DEBUG MODE
SQL Error : 1146 Table 'v084155.phpbb_bedankomat' doesn't exist
SELECT * FROM phpbb_bedankomat WHERE (user_id=2) AND (topic_id=368) LIMIT 1
Line : 744
File : /www/htdocs/v084155/viewtopic.php