How can I check if mysql table field even exists ?
The column name is \'price\' and I need to see if it exists.
Haven\'t understood really how the \'EXISTS\'
Another way of doing it in PHP:
$chkcol = mysql_query("SELECT * FROM `table_name` LIMIT 1"); $mycol = mysql_fetch_array($chkcol); if(isset($mycol['price'])) echo "Column price exists! Do something...";