1

i have a big problem on hands, lets see:

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'];}

if someone knows how can i fix that,please help me.

hjpotter92
  • 75,209
  • 33
  • 136
  • 171

0 Answers0