topic view tracker
Verfasst: 17.07.2008 10:32
den mod hab ich mal installiert, aber wenn ich die seite aufrufe, kommt:
auf phpbb.com hab ich schon geguckt, aber das hat mich nicht weitergebracht...
die zeilen 41 - 55 der topic_view_tracker.php
SQL ERROR [ mysql4 ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 [1064]
SQL
SELECT * FROM phpbb_topics WHERE topic_id=
BACKTRACE
FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()
FILE: topic_view_tracker.php
LINE: 48
CALL: dbal_mysql->sql_query()
auf phpbb.com hab ich schon geguckt, aber das hat mich nicht weitergebracht...
die zeilen 41 - 55 der topic_view_tracker.php
Code: Alles auswählen
// Get Topic ID
$topic_id = request_var('t', '');
// Get Topic information from database
$sql = 'SELECT *
FROM ' . TOPICS_TABLE . '
WHERE topic_id=' . $topic_id;
$result = $db->sql_query($sql);
$topic_data = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
// Check if user has permissions to be here
if (!$auth->acl_get('m_tracker', $topic_data['forum_id']))
{
trigger_error('NOT_AUTHORISED');