Hi, It's known bug of PHP, which has just been fixed in 4.3 CVS. Use mysql_connect instead of mysql_pconnect as a workaround of the problem. (or get the latest CVS version of php 4.3.0)
For more infos : http://bugs.php.net/bug.php?id=19529 Regards, Jocelyn ----- Original Message ----- From: "Antoine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 18, 2002 5:24 PM Subject: MySQL + PHP : "Commands out of sync; You can't run this command now" > > Hi, > > I'm having weird errors right now, running MySQL queries from PHP as > an Apache module. Sometimes (in a seemingly random way) some queries fail > and mysql_error() displays "Commands out of sync; You can't run this > command now". I would say it seems to happen when different queries are > launched at the same time by different threads, or nearly. > > It is MySQL 4.0.4, compiled from source, together with PHP/4.2.3. They > are on two different machines. > > What does this error message mean ? I've never had it before... (and I've > been using this setup for a bit of time). > > Thanks > > Antoine. > > > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > > > > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php