Hi everyone,
I am currently trying to convert my PHP Website statemets from the old mysql to mysqli and use prepared statements. I use Eclipse with PDT and a ZendDebugger on a Windows 7 OS with IIS 7.
The following code produces the following error: Call to undefined method mysqli_stmt::bindParam()
$stmt = $GLOBALS['f_dbLink'] -> prepare("SELECT post_text, bbcode_uid
FROM phpbb3_topics t, phpbb3_posts p, phpbb3_users u
WHERE t.forum_id = ? AND t.topic_id = ?
AND topic_first_post_id = post_id AND topic_first_poster_name = username");
$stmt->bindParam(1, $GLOBALS['contentForumID']);
$stmt->bindParam(2, $GLOBALS['contentID']);
$stmt -> execute();
The $stmt is created successfully as far as I can tell from the Debugger.
Does any of you have an idea?