View Single Post
Old 18-03-2008, 21:15   #7 (permalink)
haku
shiro
 
haku's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,198
That's a nice little piece of code right there. I will probably use it in the future.

Although it won't work as is if you are checking strings. I think you could make it work with strings like this:

Code:
$ids = implode("', '", $ids_array); $query = "SELECT * FROM table WHERE id IN ('".$ids."')";

Last edited by haku : 21-03-2008 at 12:36.
  Reply With Quote