• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Fatal error: Call to a member function bind_param()
#1
I've been stuck on this error , please help me this is my code PHP Fatal error: Call to a member function bind_param()

Code:
$statement= $db->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->bind_param( 'isssss', $id,$title, $description,$author,$tags,$file);
    $statement->execute();

    $db->close();
    $statement->close();
  Reply


Messages In This Thread
PHP Fatal error: Call to a member function bind_param() - by kevin21 - 05-04-2020, 07:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)