Bonjour a tous,
j'ais un retour d'erreur que je ne comprend pas très bien.
j'aurais besoin de vous pour éclairer ma lanterne.

Message d'erreur :

Warning: PDO::prepare() [function.PDO-prepare]: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. in "ICI chemin du fichier" on line 5

Fatal error: Call to a member function bindValue() on a non-object in "ICI chemin du fichier" on line 6


code correspondants a l'erreur :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
	$cat = $connexion->prepare("SELECT nom FROM bra_cat WHERE name=:name ");
	$cats -> bindValue("name", $_GET['cat']);
	$cat -> execute();
	$retour_cat = $cat -> fetch();