title: PHP Fatal error: Call to a member function bind_param()
body: <p>I've been stuck on this error , please help me this is my code
  <strong>PHP Fatal error: Call to a member function bind_param()</strong></p>
  
  <pre><code>$statement= $db-&gt;prepare("insert into uploaddetails(idnum,title,desc,author,tags,title) values(?,?,?,?,?,?)");
  
  
       $id='NULL';
      $title=$_POST['title'];
      $description=$_POST['description'];
       $author=$_POST['author'];
       $tags=$_POST['tags'];
       $file= basename($_FILES["fileToUpload"]["name"]);
  
  
      $statement-&gt;bind_param( 'isssss', $id,$title, $description,$author,$tags,$file);
      $statement-&gt;execute();
  
      $db-&gt;close();
      $statement-&gt;close();
  </code></pre>