我手上有一个大问题,让我们看看:
public function funccc(){
$in = implode(',', $_GET[cat]); // $_GET[cat] values is like 1,2,3,4,5,6
$cons = DB::getConn()->prepare('SELECT * FROM table WHERE column=? OR column=? ORDER BY RAND() LIMIT 1');
$cons->execute(array($in),array($in)); // here's the problem <<<<< how can i execute a array inside a array on pdo?
$question=$cons->fetch(PDO::FETCH_ASSOC);
echo $question['pgt'];}
如果有人知道我该如何解决,请帮助我。