Search Results
mysql_field_len () returns the length of the specified field.
Description int|false mysql_field_len(resource result, int field_offset); mysql_field_len returns the length of the specified field. Parameters
Cette extension est obsolète depuis PHP 5.5.0, et sera supprimée dans le futur. À la place, les extensions MySQLi ou PDO_MySQL doivent être utilisées. Voir aussi le guide MySQL : choix de l'API ainsi que la FAQ associée pour plus d'information. Voici les alternatives à cette fonction :
mysql_field_len 15 nov. 2018 16 fois (PHP 4, PHP 5) mysql_field_len — Retourne la taille d'un champ de résultat MySQL Avertissement
Feb 7, 2017 · There are some other functions it's worth to investigate, such as mysql_fetch_lengths (to get an array with length of all fields in a result) or mysqli_fetch_fields and PDOStatement::getColumnMeta (which return fully detailed description, including table name, field name, type, length, etc.).
Please note that the function mysql_field_len is not returning the length of the data stored in the field. It is giving the length of the field assigned in the structure of the table. So our data stored in that field can be less or equal the assigned length of that field. Check the end of this tutorial on how to get length of the data stored in a row. We will try to develop one script using ...
Description int mysql_field_len ( resource result, int field_offset ) mysql_field_len () returns the length of the specified field.
