Some one show me how i can go about trying to accomplish this...
i have file extension loaded in a DB and if they are active i call them in a mysql_query.
the way i will call all active files is
in_array($getf,$image_ext);
So all the active image extension will be called with that, no i want to do query to seach for this
$query = "select * from ".$prefix."search WHERE (type = 'jpg' OR type = 'png' OR type = 'gif' OR type = 'jpe' OR type = 'jpeg') AND (file_name LIKE '%$res%' OR name LIKE '%$res%') ORDER BY name ASC";
I want to supstitue all the (type = 'jpg' OR type='gif) a way to get all active extension with the in_array option if all possible.