Passing an array to a query using a WHERE clause
Locked. Comments on this answer have been disabled, but it is still accepting other interactions. Learn more. BEWARE! This answer contains a severe SQL injection vulnerability. Do NOT use the code samples as presented here, without making sure that any external input is sanitized. $ids = join(“‘,'”,$galleries); $sql = “SELECT * FROM galleries WHERE id … Read more