If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > array problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-24-04, 12:02
jimmy2bob jimmy2bob is offline
Registered User
 
Join Date: Feb 2004
Posts: 7
array problem

i'm trying to automatically put weather a team is been religated or not.

The value is $outcome and the 'relegation zone' starts below the team in 7th place.

I have tried this but every team get the value S (for safe). It seems like it is just repeating the first value in the array down to the others.

if ($maxpoints > $pts[6])
{
$outcome = R; // if the max points a team can get is less than the team in 7th place they are religted
}
else
{
$outcome = S; // else the team is safe
}

Hope this makes sense..
Reply With Quote
  #2 (permalink)  
Old 03-25-04, 08:14
reneeb reneeb is offline
Registered User
 
Join Date: Jan 2004
Location: Germany
Posts: 167
please post some more code... with that little code it is hard to say what is going wrong...
__________________
board.perl-community.de - The German Perl-Community
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On