Re: COUNT(*) fails in PHP3

From: Date: Wed, 07 Feb 2001 16:21:02 +0000
Subject: Re: COUNT(*) fails in PHP3
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5447@lists.php.net to get a copy of this message
Unfortunately, I don't have PHP3 on Windows, but it works fine for me in PHP3 on Linux and PHP4 on both Windows and Linux. This is also testing with both MySQL and MSSQL in all three scenarios. ----- Original Message ----- From: "Piotr Fetras" <Piotr.Fetras@centertel.pl> To: "<"php-windows"" <php-windows@lists.php.net> Sent: Wednesday, February 07, 2001 10:56 AM Subject: [PHP-WIN] COUNT(*) fails in PHP3 > hi all ! > > I have problems while executing SQL with aggregation functions, even simple > > SELECT COUNT(*) FROM aTable > > stalls. It seems to be a problem in PHP3 itself since other odbc-based applications run well. > There is simple but stupid solution for this problem: add "group by" phrase: > > SELECT COUNT(*) FROM aTable GROUP BY 1 > > and it goes on. > Is it the same in PHP4 ??? > > piofet > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#5447) next »