<?
include("admin/config.php");
$strSQL = "SELECT * FROM member WHERE B = '2' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
do {
$URL[] = (int)str_replace('_cnt','',$objResult['A']);
} while ($objResult = mysql_fetch_array($objQuery));
$user = "'".join($URL,"','")."'";
?>
<?
include("admin/config.php");
$strSQL = "SELECT * FROM member WHERE B IN (". $user. ") "; //// ---ขอบคุณครับ
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
while($objResult = mysql_fetch_array($objQuery))
{
echo $objResult["A"];
};
?>