You are here: Reordering results « PHP SQL « IT news, forums, messages
Reordering results

Posted by strawberry on 03/31/06 20:55

OK, strange one today -

The following query works perfectly on the command line (122 rows 0.03
sec), but returns 'Projects' as, for instance, '[BLOB - 4 Bytes]' when
issued in phpmyadmin.

This only occurs when I try to reorder the results (as shown in the
penultimate line)

Can anyone tell me how to get this query to work properly in
phpmyadmin?

SELECT client_name, COUNT( * ) AS cnt, GROUP_CONCAT(
projects.project_no
ORDER BY projects.project_no
SEPARATOR ', ' ) AS Projects
FROM projects_contacts
LEFT JOIN clients ON clients.client_id = projects_contacts.client_id
LEFT JOIN projects ON projects.project_id =
projects_contacts.project_id
GROUP BY projects_contacts.client_id
ORDER BY cnt DESC
LIMIT 0 , 300

Cheers

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация