Reply to Re: Sorting

Your name:

Reply:


Posted by comatose on 02/24/07 01:19

On Fri, 23 Feb 2007 18:36:36 -0600, "Steve" <no.one@example.com> wrote:

><comatose> wrote in message
>news:m3uut2t6kggs59nhm6j6v0anl6bi5j77ni@4ax.com...
>| Newbie here:
>| can anyone help me, i've been beating my brain on this one.
>| how can i sort from highest to lowest for $player_wins[$i] ??
>|
>|
>|
>|
>| echo "<table width='300' border='1' cellspacing='0' cellpadding='2'
>bgcolor='#FBFFC6'>";
>| echo "<tr><th width='180'>Player</th><th width='40'>Won</th><th
>width='40'>lost</th><th
>| width='40'>Avg.</th>";
>| for($i=0;$i<=$counter;$i++){
>| if ($player_name[$i] != ""){
>| $avg = ($player_wins[$i]/($player_wins[$i]+$player_loss[$i]));
>| echo
>|
>"<tr><td>".$player_name[$i]."</td><td>".$player_wins[$i]."</td><td>".$player_loss[$i]."</td><td>".round($avg,3)."</td></tr>";
>| }
>| }
>| echo "</table>";
>
>HOLY FUCK !!! RTFM !!!!
>
I did read it and Sort() doesn't work cause it throws the other arrays off or don't match up after
the sort.......why don't you try helping someone instead of being an asshole, you took the time to
write your response instead of trying to explain, that makes you an asshole.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация