Re: [PHP-DB] Re: Word Activity Application

2011-01-03 Thread Niel Archer
The FOREACH below is giving me the error: Invalid argument supplied for foreach() Not surprising as the $match_words will contain a boolean result from shuffle. Shuffle works directly on the variable it is given and returns true or false, depending on success. rtfm ;-) Does anyone

[PHP-DB] Re: Word Activity Application

2011-01-02 Thread Ron Piggott
The FOREACH below is giving me the error: Invalid argument supplied for foreach() Does anyone understand what I have done to cause this error? #query for words $query = SELECT `reference` , `word` , `explanation` FROM `Bible_dictionary` WHERE `live` =1 ORDER BY RAND( ) LIMIT 5 ;