Hi, I set up a small fishing directory and I'm getting a warning line at the top of the page. Can someone check it out and let me know what it means and how I can fix and or get rid of it? Here's where it is: Fishing directory Thanks. Roger
Awesome URL... Have no idea about that & have never heard about that script. I'd recommend you use phpld which is very very popular.
The number in the second argument is higher than the number of array keys from the array in the first argument. Post your code if you need help.
i got the response : " Warning: array_rand() [function.array-rand]: Second argument has to be between 1 and the number of elements in the array in /hermes/web07/b2934/pow.mahumba/directory/htdocs/directory on line 381 " from your page. Did you tried using a "@" sign before the array_rand() function. old one should be like array_rand(); using @array_rand() should work for your problem. PS: Also i'm seeing that the sacond argument in array_rand() function that you are using is invalid ... Cya Irmak
The @ operator is not a good solution, specially for something that can probably be fixed very easily. It might prevent the script from working correctly, and you wouldn't even know cause you're telling the script to be silent.