日期:2014-05-16 浏览次数:20757 次
$answer_username=$dblink->mem_fetch_array("SELECT uid FROM `cy_member` WHERE username LIKE '%".$_GET ['answername']."%'"); $anser_ids=''; foreach ($answer_username as $answer_username){ $anser_ids.="".$answer_username['uid'].","; } $anser_ids=rtrim($anser_ids,','); if($anser_ids){ $answernamestr ="…… where q.answername like '%" . $_GET ['answername'] . "%' or q.auid in ($anser_ids)" : '';