I\'d like to get all of a mysql table\'s col names into an array in php?
Is there a query for this?
Try this one out I personally use it:
SHOW COLUMNS FROM $table where field REGEXP 'stock_id|drug_name'