note 107373 added to function.mysql-field-len

From: Date: Sat, 04 Feb 2012 17:38:31 +0000
Subject: note 107373 added to function.mysql-field-len
Groups: php.notes 
Request: Send a blank email to php-notes+get-185852@lists.php.net to get a copy of this message
Note that for some reason the length of fields is 3 times the actual value if you are using UTF8 encoding.. So a varchar(10) field returns 30 here. This renders this function almost useless. ---- Server IP: 69.147.83.197 Probable Submitter: 94.215.80.85 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-field-len.php Edit -- https://master.php.net/note/edit/107373 Del: integrated -- https://master.php.net/note/delete/107373/integrated Del: useless -- https://master.php.net/note/delete/107373/useless Del: bad code -- https://master.php.net/note/delete/107373/bad+code Del: spam -- https://master.php.net/note/delete/107373/spam Del: non-english -- https://master.php.net/note/delete/107373/non-english Del: in docs -- https://master.php.net/note/delete/107373/in+docs Del: other reasons-- https://master.php.net/note/delete/107373 Reject -- https://master.php.net/note/reject/107373 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185852) next »