PHP Array in MySQL IN() function?
Posted
by Trez
on Stack Overflow
See other posts from Stack Overflow
or by Trez
Published on 2010-03-08T02:43:26Z
Indexed on
2010/03/08
3:17 UTC
Read the original article
Hit count: 181
Is it possible to assign php array in MySQL IN() function? for example,
$numbers = array('8001254656','8886953265','88864357445','80021536245');
$sql = mysql_query("SELECT * FROM `number_table` WHERE `number` IN ($numbers)");
Any Ideas?
Thanks,
© Stack Overflow or respective owner