[PHP-DB] Re: php-db Digest 1 May 2002 19:24:34 -0000 Issue 1181

2002-05-02 Thread Dave Carrera
Hi Frank, Thank you for the help and example you included in your reply. With the help gained by all that answered I concocted this work around which works perfectly. I have included the code to help anyone else who needs this kind of result. It has two table references the first gets admin da

[PHP-DB] Re: php-db Digest 1 May 2002 19:24:34 -0000 Issue 1181

2002-05-01 Thread Frank Flynn
Hi Dave, The easiest, most direct, ANSI - SQL way to do what you ask is: SELECT count(*) as num_posts, Admin_id FROM <> WHERE <> GROUP BY Admin_id ORDER BY Admin_id This will give you: num_posts Admin_id - 3 1 4 2 5 3 And naturally you