how to put where clause variable $didno
in following code:
$pdo = Database::connect();
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$sql = "SELECT * FROM misscall WHERE did_no = ?";
$q = $pdo->query($sql);
$mobile1 = array();
while ($mobi1 = $q->fetchColumn()) {
$mobile1[] = $mobi1;
}
$mobile1list = join(",", $mobile1);
Database::disconnect();
thanks in advance