Dev Bug - criers

As bugs and suggestions are fixed/implemented/rejected, they will be moved in here.
Post Reply
User avatar
Slasher
The FAF Forums SMEGHEAD!!! lol
Posts: 2635
Joined: Mon May 03, 2004 5:08 pm
Location: http://florida4us.com/
Contact:

Post by Slasher »

I get
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/staron/public_html/dev/clancrier.php on line 70
Leader: (#)
But when I click it again it shows one clan ok then I click it again and it shows a differnet clan until it goes through all the clans then I get the error again...
I do not have a signature, you must be imagining

http://florida4us.com/

Image
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Retto does not grasp the concept of an array going from 0 to length-1. Changed:

code: Select all

$rn = rand(0, count($clannumbers));
to

code: Select all

$rn = rand(0, count($clannumbers)-1);
Fixed.
:wq
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members