Jump to content
MakeWebGames

Recommended Posts

Posted

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);

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...