note 8880 deleted from function.mysql-fetch-field by felipe

From: Date: Mon, 21 Jul 2008 01:52:38 +0000
Subject: note 8880 deleted from function.mysql-fetch-field by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142394@lists.php.net to get a copy of this message
Note Submitter: dave at techweavers dot net ---- If you want to get the max length of a column not just the data use this: $result = mysql_query ("SELECT * FROM table"); $fields = mysql_num_fields ($result); $i = 0; while ($i < $fields) { $len = mysql_field_len ($result, $i); $i++; } Or refer to http://www.php.net/manual/function.mysql-field-type.php

« previous php.notes (#142394) next »