Guy G
12-30-2004, 09:51 PM
i wanna count how many X items a user have.
so i set up this query:
SELECT *
FROM vb3_table
WHERE userid = 1
and it gives all the items a the user have according to his userid..
now i want to count it... so how do i add to the query or count the number of item'sID with in the array which is formed?
i want it to have lika a varable, $total = (number of items found according to item's id).
hope i got it clear enough... :P
so i set up this query:
SELECT *
FROM vb3_table
WHERE userid = 1
and it gives all the items a the user have according to his userid..
now i want to count it... so how do i add to the query or count the number of item'sID with in the array which is formed?
i want it to have lika a varable, $total = (number of items found according to item's id).
hope i got it clear enough... :P