grant Posted May 5, 2012 Share Posted May 5, 2012 ok am trying to get a sum from a db to count the number of awards but not working the way i want it i want the code to grab about 12 from the table from grpgusers can this be done ? am useing $result = mysql_query("SELECT SUM(many) FROM `grpgusers` WHERE `user`='".$profile_class->id."'") or trigger_error(mysql_error(),E_USER_ERROR); $med = mysql_result($result,0); Quote Link to comment Share on other sites More sharing options...
grant Posted May 5, 2012 Author Share Posted May 5, 2012 its all good got it fixed Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted May 5, 2012 Share Posted May 5, 2012 Well say thanks to SRB then :P Quote Link to comment Share on other sites More sharing options...
grant Posted May 6, 2012 Author Share Posted May 6, 2012 Well say thanks to SRB then :P had it fixed before rsb posted that but cheers rsb for posting Quote Link to comment 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.