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
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
;