Jump to content

cant understand why


grlayouts

Recommended Posts

can anyone understand why row[1] comes out the highest amount but row[0] just shows a random user.handle just picks a random user and not the one assigned as attackdetails.who with the ammount.

 

ie

 

attack who type unit amount

1 10730 3 0 91431

 

user 10730 is BOB but it displays another users name as row[0]

 


   $sql = "SELECT users.handle,max(attackdetails.amount) FROM users,attackdetails WHERE users.id=attackdetails.who AND attackdetails.type=4 GROUP BY type";
   $r = mysql_query($sql); $row = mysql_fetch_row($r);
   tableEntry(array('Most Supply Stations Won in an Attack', $row[0], number_format($row[1])), 'align="center"');
   endTable();

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.