In my app I have login/registration system and need to count the total number of registered users. For example I have 2 registered users.
----------------------------------------------------
|id| email |use_name|user_pass|confirm_pass|
----------------------------------------------------
|7 | theo@gmail.com| theo | my pass | my pass |
----------------------------------------------------
|8 | test@gmail.com| test | my pass | my pass |
----------------------------------------------------
The is a function in mysql called SUM,but it adds ints.In my case though the id is incrementing from the last deleted user.
Thanks,
Theo.