Array Search in Query Where Statement
This is a small example on how to run a query with an array inside the WHERE clause. I hope this can help you in your projects.
This is a small example on how to run a query with an array inside the WHERE clause. I hope this can help you in your projects.
$ids = array( "1", "2", "3", "4" ); $idsStr = implode(',', $ids); SELECT * FROM table WHERE id IN ('.$idsStr.')
Enjoy!