예제 #1
0
파일: db.php 프로젝트: robchett/framework
 /**
  * @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);
 }