But the problem is that at time to generate prepared statements it's impossible.
It is also necessary to say that at page i can 't use $_POST and $_GET and i had to use request_var('', '0');, because ever jump this error:
Code: Select all
Illegal use of $_POST. You must use the request class to access input data. This error message was generated by deactivated_super_global...
Code: Select all
$result = $link->query("SELECT t.topic_id FROM $table_topics t WHERE t.topic > 2 ") or die("Error");
Code: Select all
$sql = "SELECT t.topic_id FROM $table_topics t WHERE t.topic > 2 "
$result = $db->query($sql);
$row = $db->mysqli_fetch_row($result);
$db->mysqli_free_result($result);
Code: Select all
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpbb_url_path = 'http://page.com/forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include_once($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$db = mysqli_connect("$dbhost", "$dbuser", "$dbpasswd") or die("fail");
mysqli_select_db($db, "$dbname") or die("fail");
(after that code i have this only at web page including index)
page_header....
$template->....
page_footer(); //at footer
Anyone know why is that?
Sorry for my english XD i hope anyone could help me. Thanks in advance