php mysql in array

$ids = join("','",$galleries);   
$sql = "SELECT * FROM galleries WHERE id IN ('$ids')";

链接地址:

http://stackoverflow.com/questions/907806/php-mysql-using-an-array-in-where-clause

你可能感兴趣的:(接口对接)