MyBB Community Forums

Full Version: FUNCTION mybb.array does not exist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Trying to create an array that says the fid can be x or x. Unfortunately it's causing an error.

Ideas?

WHERE fid3 = array('Mare', 'Filly') AND mybb_users.usergroup IN (9) 

I tried following Example #4 Indexed arrays without key on the PHP Manual site... no luck.

-----

NEVERMIND, just realized I could do this without the array (I think I'm mis-using array's anyways) by adding ( and ) around the fid3 content.
You should be using the IN clause instead of the equal sign.
WHERE fid3 IN ('Mare', 'Filly')
Already solved this except in parenthesis for each. Yours seems to be a simpler way so may update the script.

I used:
WHERE (fid3 = ‘Mare’ AND fid3 = ‘Filly’)