Could not query preview information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near '' at line 3
SELECT post_text, bbcode_uid, enable_smilies FROM phpbb_posts_text AS pt, phpbb_posts WHERE pt.post_id=
Line : 38
Code: Selecteer alles
// Begin Topic Preview
function get_preview_text($post_id, $length)
{
global $db, $board_config;
$sql = "SELECT post_text, bbcode_uid, enable_smilies
FROM " .POSTS_TEXT_TABLE ." AS pt, " . POSTS_TABLE ."
WHERE pt.post_id=$post_id";
//
// query the database
//
if(!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not query preview information', '', __LINE__, __FILE__, $sql);
}