dinoslikeroar Posted January 29, 2017 Share Posted January 29, 2017 How can I go about adding an Include option to the following code? Elseif statement if it matches include option display the include date. Need to add or include after the admindateinsteadexclude option if (preg_match("/AdminDateExclude/", $option) || preg_match("/AdminDateInsteadExclude/", $option) { $string_temp = substr($option, strpos($option, 'AdminDate')); $string_temp = substr($string_temp, 0, strpos($string_temp, ',')); $ids = explode('.', $string_temp); array_shift($ids); $ids_list = implode(', ', $ids); $exclude_admin = " AND id NOT IN(".$ids_list.") "; } else { $exclude_admin = ""; } Quote Link to comment Share on other sites More sharing options...
ginerjm Posted January 29, 2017 Share Posted January 29, 2017 I have no idea what you are asking. Maybe you should re-read your post and try again? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.