I didn't try that but it works great...thanks! -----Original Message----- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 3:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] shuffle
"Edward Peloke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > it is strange... > > if I do this: > > function nextRecord(){ > $this->[EMAIL PROTECTED]($this->queryID); > $test=$this->record; > echo $test; > > $status=is_array($this->record); > return ($status); > } > > "Array" is echoed for $test so I know it is an array but if I add this: > > shuffle($test); > > I get the warning that shuffle() expects parameter 1 to be an array, boolean > given. Have you tried shuffling in MySQL?: SELECT * FROM table ORDER BY RAND() Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php