[UPHPU] MySQL query to get totals
Morgan Terry
localstatic at localstatic.com
Sun Sep 28 10:41:01 MDT 2008
On Sun, Sep 28, 2008 at 10:34 AM, Wade Preston Shearer
<lists at wadeshearer.com> wrote:
> That didn't work for me, but you got me going in the wright direction. This
> worked:
>
> SELECT ID, count(ID) as count
> FROM table_name
> GROUP BY ID
> ORDER BY ID
>
>
> Thanks.
Glad it helped. Now that I look at mine again, it looks like I messed
up when converting the field names in a test query of a table of mine
to match your example.
More information about the UPHPU
mailing list