Sorry about that.
$vote, $maxvotes, $loser, $leastvotes, $ko Variables are from a POLL system in vBulletin.
$vote = When someone votes for a person.
$maxvotes = When you set up a battle you have an option to stop it at 1,2,3,4,5, etc votes. So if you had it at 5 votes - it's whoever got to 5 FIRST.
$loser = the person who lost obviously...they didn't get to the "set vote" count first.
$leastvotes = this is pretty obvious... just means the person who recieved the least amount of votes - then they become "$loser".
$ko = this is the variable i made for "KNOCK OUTS" meaning the person who won recieved ALL VOTES and the loser ended up with NO VOTES.
The system is updated meaning vBulletin uses "$username" variables... now $username vs. $username ($userid) is basically how the "BATTLE SYSTEM" is done.
So let's say "$username (Bob = $userid)" was battling "$username (tom = $userid)" and everyone voted for Bob... the system collects each vote as they're made through the Poll system and it tallies up the votes at the end from who had the most -== $winner ... follow me?
So i've got "bob" getting 5 votes and "tom" getting 0 ... now BOB wins and the system has no problem updating Bobs "win/loss" column in his profile fields ... as well as "tom" with his 1 new loss.
My problem is if "Bob" got every vote (total of 5) and "Tom" recieved NONE - it should also come out as a K.O. as well as a win.
So in essence - i need the WIN and K.O. update for Bob ... but i can't figure out how to write this syntax for it.
Again, "KO'S" are "KNOCK OUTS" meaning the WINNER recieved ALL votes and the loser recieved NO VOTES...
I've tried several ways and it's not working.
Is this a little more clear? If not - i'll try posting all the code... but it's basically all there ^ for the PHP part... that seems to be my downfall thus far.'
Thanks,
Clint