$id='gsf';
$stmt=$mysqli->prepare('SELECT `title` FROM `post` WHERE (`content` LIKE `%?%`) and accepted=0 order by count desc Limit 0,5');
$stmt->bind_param('s',$id);
$stmt->execute();
$stmt->bind_result($title);
while($stmt->fetch();)
{
echo $title."<br>";
}
$stmt->close();
$mysqli->close();
This is a Php Snippet hen i execute it i get this error Call to a member function bind_param() on a non-object
what am i missing out??
Try this: