bindValue With or Without data_type?

1

I'm trying to insert some data into my database, id is set to ìnt and the rest all varchar , and I get this error:

  

Catchable fatal error: Object of class stdClass could not be converted to string in C: \ wamp64 \ www \ twitterlogin \ app \ class \ Crud.php on line 17

Here is the line that accuses the error:

$stmt->bindValue(":$key", $value);

My question "?", If I do not pass PDO::PARAM_* constants , does it retrieve all values? For example, do you insert from my db both int and str ?

I think you can understand my doubt.

    
asked by anonymous 29.06.2017 / 19:36

0 answers