Curt Posted January 8, 2011 Posted January 8, 2011 Hey, you could do a row count like so : $HOSPCNT=$db->query("SELECT userid FROM users WHERE hospital>0"); $HCNT=$db->num_rows($HOSPCNT); You can do the same for jail : $JAILCNT=$db->query("SELECT userid FROM users WHERE jail>0"); $JCNT=$db->num_rows($JAILCNT); $HCNT and $JCNT will display how many people are in the hospital and jail... Hope that helps you.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.