Thread
:
MySQL + Arrays?
View Single Post
#
8
09-30-2011, 07:32 AM
Hall of Famer
Administrator, Lead Coder
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits:
395,424
Well, change:
PHP Code:
$species
=
$input
[
$rand_keys
[
0
]];
To this then:
PHP Code:
$species
=
$input
[
$rand_keys
];
Remember array_rand() returns a string if the number is set to be 1, it returns an array if the number is greater than 1.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Hall of Famer
View Public Profile
Send a private message to Hall of Famer
Find all posts by Hall of Famer