Page 2 of 2

Posted: Sun Sep 17, 2006 11:53 am
by Li0rE

Code: Select all

<?php
for($i=0; $i<9; $i++)
{ 
     $num = $i+1;
     $attack[$num] = mysql_result($result, $i, "won");
}
?>
There you go, simple as that.
Only difference is instead of getting each one by $attack3, $attack4, etc. is it is $attack[3], $attack[4].

Hope this helps.

-Li0re