Ik krijg deze error:
Code: Selecteer alles
Could not query links information
DEBUG MODE
SQL Error : 1146 Table 'esaclan_esa.PA_CAT_TABLE' doesn't exist
SELECT l.link_url, l.file_name, l.file_desc, l.file_id, lc.cat_name, lc.cat_id, u.username, u.user_id FROM phpbb_pa_files l, PA_CAT_TABLE lc, phpbb_users u WHERE l.file_active = 1 AND l.file_catid = lc.cat_id AND l.user_id = u.user_id ORDER BY l.file_id DESC LIMIT 0,10
Line : 508
File : /home/www/esaclan.50free.net/forum/portal.php
Code: Selecteer alles
//
// Recent Downloads
//
$sql = "SELECT l.link_url, l.file_name, l.file_desc, l.file_id, lc.cat_name, lc.cat_id, u.username, u.user_id
FROM " . PA_FILES_TABLE . " l, " . PA_CAT_TABLE . " lc, " . USERS_TABLE . " u
WHERE l.file_active = 1
AND l.file_catid = lc.cat_id
AND l.user_id = u.user_id
ORDER BY l.file_id DESC
LIMIT 0,".$board_config['recent_downloads'];
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not query links information', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$template->assign_block_vars('recent_downloads', array(
'DL_URL' => '<a href="'.append_sid("dload.$phpEx?action=go&file_id=" . $row['file_id']).'" target="_blank" onMouseOver="document.all.recent_downloads.stop()" onMouseOut="document.all.recent_downloads.start()"><b>'.$row['file_name'].'</b></a>',
'DL_CAT' => '<a href="'.append_sid("dload.$phpEx?t=sub_pages&cat=" . $row['cat_id']).'" onMouseOver="document.all.recent_downloads.stop()" onMouseOut="document.all.recent_downloads.start()"><i>'.$row['cat_title'].'</i></a>',
'DL_DESC' => $row['file_desc'],
'DL_AUTHOR' => '<a href="'.append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']).'" onMouseOver="document.all.recent_downloads.stop()" onMouseOut="document.all.recent_downloads.start()">'.$row['username'].'</a>')
);
}
$template->assign_vars(array(
'L_RECENT_DOWNLOADS' => $lang['Recent_downloads'])
);
Dit is de pa_files en pa_cat tabel:
Code: Selecteer alles
#
# Table structure for table `phpbb_pa_cat`
#
CREATE TABLE phpbb_pa_cat (
cat_id int(10) NOT NULL auto_increment,
cat_name text,
cat_desc text,
cat_files int(10) default NULL,
cat_1xid int(10) default NULL,
cat_parent int(50) default NULL,
cat_order int(50) default NULL,
PRIMARY KEY (cat_id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `phpbb_pa_files`
#
CREATE TABLE phpbb_pa_files (
file_id int(10) NOT NULL auto_increment,
file_name text,
file_desc text,
file_creator text,
file_version text,
file_longdesc text,
file_ssurl text,
file_dlurl text,
file_time int(50) default NULL,
file_catid int(10) default NULL,
file_posticon text,
file_license int(10) default NULL,
file_dls int(10) default NULL,
file_last int(50) default NULL,
file_pin int(2) default NULL,
file_docsurl text,
file_rating double(6,4) NOT NULL default '0.0000',
file_totalvotes int(255) NOT NULL default '0',
PRIMARY KEY (file_id)
) TYPE=MyISAM;
# --------------------------------------------------------
Wie mij kan helpen, hartelijk dank.