FROM ' .phpbb_posts WHERE post_id = 10135;
Parse error: syntax error, unexpected T_STRING in F:\Webserver\xampp\htdocs\tdpgaming\test.php on line 12
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path ='./phpBB3/';
$phpEx = substr(strrchr(__FILE__,'.'), 1);
include($phpbb_root_path .'common.'. $phpEx);
include($phpbb_root_path .'includes/functions_display.'. $phpEx);
include($phpbb_root_path . 'config.' . $phpEx);
$db = new $sql_db();
$sql = 'SELECT text, bbcode_uid, bbcode_bitfield, enable_bbcode, enable_smilies, enable_magic_url
FROM ' .phpbb_posts WHERE post_id = 10135;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$row['bbcode_options'] = (($row['enable_bbcode']) ? OPTION_FLAG_BBCODE : 0) +
(($row['enable_smilies']) ? OPTION_FLAG_SMILIES : 0) +
(($row['enable_magic_url']) ? OPTION_FLAG_LINKS : 0);
$text = generate_text_for_display($row['text'], $row['bbcode_uid'], $row['bbcode_bitfield'], $row['bbcode_options']);
echo $text;
?>