hey guys im looking for to show columns of a table except some. forexample my table name mobile_table
has columns like :
- sony
- nokia
- apple
- LG
- Sumsung
...and i need to show these columns except Sumsung ,LG
$exceptions_arr = "LG,Sumsung"
i know how to show column names of a table but not to apply exeption array filter !
$query = "SHOW COLUMNS FROM mobile_table";
$result = mysql_query($query);
while($columns = mysql_fetch_array($result, MSQL_ASSOC))
{
echo $columns;
}