dbTalk Databases Forums  

Can't use GROUP BY with PHP

comp.database.ms-access comp.database.ms-access


Discuss Can't use GROUP BY with PHP in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lorenzo Thurman
 
Posts: n/a

Default Can't use GROUP BY with PHP - 06-06-2006 , 11:08 AM






I'm connecting to an access database and I would like the query to
return results grouped on a particular column. When I try the following
query, I get this error back from PHP:
DB Error: syntax Error

"SELECT * FROM HardwareInstallationsSummary WHERE LocationID = $loc_ID
GROUP BY Manufacturer"

Iposted this question on a PHP list and someone there suggested that SQl
does not allow this to happen unless its part of an aggregate statement.
Is this true? Is there a way around this?
TIA

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.