To mi funguje dobře.
SHOW COLUMNS FROM `table` LIKE 'fieldname';
S PHP by to bylo něco jako...
$result = mysql_query("SHOW COLUMNS FROM `table` LIKE 'fieldname'");
$exists = (mysql_num_rows($result))?TRUE:FALSE;
To mi funguje dobře.
SHOW COLUMNS FROM `table` LIKE 'fieldname';
S PHP by to bylo něco jako...
$result = mysql_query("SHOW COLUMNS FROM `table` LIKE 'fieldname'");
$exists = (mysql_num_rows($result))?TRUE:FALSE;