开发者

mysqli_field_type returns a number [duplicate]

开发者 https://www.devze.com 2022-12-13 15:04 出处:网络
This question already has answers here: 开发者_JS百科 PHP mysqli_fetch_field data type (4 answers) Closed 4 years ago.
This question already has answers here: 开发者_JS百科 PHP mysqli_fetch_field data type (4 answers) Closed 4 years ago.

When I call mysqli_field_type it returns a number, which I assume relates to the type. Does anyone have a list of types and their corresponding numbers? I am in particular trying to find out if the data type is numerical or text (if that makes a difference).


Can be useful to someone, use this function:

$type = mysqli_fetch_field_direct($result, $i)->type;

Find out more: result->fetch_field_direct

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号