In mysql table i got entries with those keys should be exclude from the array.
How to echo all array keys without those specifed in mysql table?
<?php
$a = array("1","2","3","4","5","6","7","8");
?>
In table i have entries with key that should be exlude from array
<?php
$query=mysql_query("SELECT key FROM table");
while($get=mysql_fetch_array($query)) {
$k=$get['key'];
}
?>
Now i need each $k exclude from $a array and echo all others array keys.
Thank you in advance.