RE: [PHP-ES] [MYSQL] Commands out of sync; You can't run this command now

From: Date: Mon, 07 May 2001 13:37:50 +0000
Subject: RE: [PHP-ES] [MYSQL] Commands out of sync; You can't run this command now
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-9727@lists.php.net to get a copy of this message
Correcto Angel: Este error ha aparecido después de rodar mucho tiempo con el php 4.0.4 sin problemas, y justo al actualizar el sistema a php 4.0.5. En concreto, en el foro de nuestra web (del proyecto http://www.phorum.org). Ahora bien, he visto otros errores de conexión que me están haciendo sospechar de que algo no va bien. Seguiré investigando a ver que dicen los de phorum.org al respecto. Gracias. Manuel P. -----Mensaje original----- De: Àngel Fenoy [mailto:afenoy@wol.es] Enviado el: domingo, 06 de mayo de 2001 23:54 Para: lista@phpes.com Asunto: Re: [PHP-ES] [MYSQL] Commands out of sync; You can't run this command now Diumenge 06 Maig 2001 23:25, maseducativa.com dixit: > Hola: > > ¿Aguien sabe a qué se debe este error que aparece de vez en cuando, cuando > se intenta conectar a un base de datos mySQL desde un script en PHP 4.0.5? > > El error es "Commands out of sync; You can't run this command now" > > Un saludo > Manuel P. Del manual de mysql (http://www.mysql.com/doc/C/o/Commands_out_of_sync.html): ------------------------------ 21.4.12 Commands out of sync Error in Client If you get Commands out of sync; You can't run this command now in your client code, you are calling client functions in the wrong order! This can happen, for example, if you are using mysql_use_result() and try to execute a new query before you have called mysql_free_result(). It can also happen if you try to execute two queries that return data without a mysql_use_result() or mysql_store_result() in between. ------------------------------- ¿Te está ocurriendo esto después de cambiar a php 4.0.5? ¿Con el mismo código que sí funcionaba en php 4.0.4? Si es así, puede deberse a un error en php 4.0.5, pero lo he estado buscando en http://bugs.php.net y no lo veo. En fin, no sé qué pueda ser, pero ya tienes un poco más de información. Saludos Àngel --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com

« previous php.general.es (#9727) next »