-1
while ($field = mysqli_fetch_field($query->result_id)) {
// Most versions of MySQL store timestamp as a string
$is_int[$i] = (in_array(strtolower(mysqli_field_type($query->result_id, $i)), array('tinyint', 'smallint', 'mediumint', 'int', 'bigint'), //, 'timestamp'),
true)) ? true : false;
// Create a string of field names
$field_str .= '`' . $field->name . '`, ';
$i++;
}
致命錯誤:Call to undefined function mysqli_field_type()
MySQL中的MySQLi轉換