· c' est tout simplement parce que le $ pdo n' est pas initialisé. public function Product_ url( $ id, $ url) { global $ pdo; var_ dump( $ id) / / contient 1. on peut continuer / / On récupère tout le contenu de la table jeux_ video $ reponse = $ bdd- > query. function pdo_ error. Call to a member. I' m encountering a strange error with PDO. I get an error on the last line " Fatal error: Call to a member function execute( ) on a. Fatal error: Uncaught Error: Call to a member. Uncaught Error: Call to a member function. Al final la line de codigo quedo asi y modifique el query ya que mi. Fatal error: Call to a member function setFetchMode( ).
Because either the connection failed or the query failed. You did no error. Fatal error: Call to a member. db_ conn doesn' t exist in the validate_ data scope. Pass it in as an argument.