runnerjp Posted June 26, 2008 Share Posted June 26, 2008 im trying to count the number of users i have signed up by <?php session_start(); require_once '../settings.php'; $search_query = "SELECT ID FROM users"; $result = mysql_query($search_query); $result_count = mysql_num_rows($result); ?> but its notworking...how ocmes? Quote Link to comment https://forums.phpfreaks.com/topic/112009-solved-counting-number-of-users/ Share on other sites More sharing options...
ratcateme Posted June 26, 2008 Share Posted June 26, 2008 have you defined and mysql connection?? use this for the query $result = mysql_query($search_query) or die (mysql_error()); Scott. Quote Link to comment https://forums.phpfreaks.com/topic/112009-solved-counting-number-of-users/#findComment-574939 Share on other sites More sharing options...
runnerjp Posted June 26, 2008 Author Share Posted June 26, 2008 ok i just did a major school boy error.... i suppose it will never work if i dont echo the result out >< dang lol cheers Quote Link to comment https://forums.phpfreaks.com/topic/112009-solved-counting-number-of-users/#findComment-574942 Share on other sites More sharing options...
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.