2014-03-14 94 views

回答

0

您需要的陣列內爆,以逗號分隔字符串

$variables_imploded = implode(",",$variable); 

"SELECT * 
FROM software_capability 
where software_capability_id IN 
(".$variables_imploded.")"; 
+0

由於abhik其工作。 – Senthilkumar

+0

非常歡迎您! –

+0

@Senthilkumar請接受這個答案,因爲它會被標記爲已解決 –

0

使用JOIN或破滅

$variables_joins = join(',',$variable); 

SELECT * FROM software_capability where software_capability_id IN ($variables_joins);