> I don't know if this is actually it, but the line > $num_vals[$i] = mysql_fetch_array($result); > seems strange to me - doesn't mysql_fetch_array return an array? > You should try > list($num_vals[$i]) = mysql_fetch_array($result); > and see if you get any improvements...
No, that was not it. It gave me different results - but still wrong. I have, however, got a little closer by extending the loop to 0-11, for ($i=0; $i<11; $i++), and changing the display, starting with: echo $num_vals[1][0];;. I had alla numbers shifted one step to the right before when counting zeroes as well. But - still the same problem. It doesn´t count correctly - and i can´t figure out why... - Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]