mysql - Filter with an array -


i know can search id array using id in ($array) like

$ids = join(',',$galleries);   $sql = "select * galleries id in ($ids)"; 

can done in reverse there's column of ids stored in table , pass single id condition in clause?


Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -