I\'ve ask a question for PDO error (here But I\'ve a another problem with object...
Here is my code :
include(\'../../config/connexion-bdd.php\');
$nom
It is all clear, Your $bdd is not containing a SQL connection. You have to check for the validity of the SQL connection.
$bdd must be an object, and thus it contains a method called prepare().
When the connection is not established correctly, the variable $bdd will not be an object and thus will not have a method prepare.
Now, when you use $bdd->prepare() it throws an error that $bdd is not an object, thus it could not have a method called prepare()
Now, you should present a var_dump($bdd) before the $bdd->prepare() line for use to inspect it.