grant Posted May 5, 2012 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
grant Posted May 6, 2012 Author Posted May 6, 2012 Well say thanks to SRB then :P had it fixed before rsb posted that but cheers rsb for posting 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.