I have code like this:
$p = $db->query("SELECT ads_id FROM ads_submissions WHERE status = '0'");
$c_ads = array();
while($row = $db->fetchAll($p))
{
$c_ads[] = $row;
}
Output
4 6 9
I want to add this line to $new_ads = $db-> after WHERE
AND ads_id = !in_array('$output', $c_ads)
To select all ads_id except id 4 and 6 and 9
$new_ads = $db->fetchOne("SELECT ads_id FROM ads_pack WHERE allowed_countries LIKE '%".$country_tr."%'");
But this never work correctly.
Any help please ?
Thank you.