/** * @param $table string * @param $column string * @return bool */ public static function column_exists($table, $column) { $res = _db::query('SHOW COLUMNS FROM `' . $table . '` LIKE ' . _db::esc($column)); return _db::num($res); }