note 60616 added to function.mysql-field-len

From: Date: Thu, 12 Jan 2006 13:46:55 +0000
Subject: note 60616 added to function.mysql-field-len
Groups: php.notes 
Request: Send a blank email to php-notes+get-101623@lists.php.net to get a copy of this message
The example over there is wrong. In the first example someone coppied an wrong function in line 9 _mysql_fetch_len()_ This will be correct: <?php $result = mysql_query("SELECT id,email FROM people WHERE id = '42'"); if (!$result) { echo 'Abfrage konnte nicht ausgeführt werden: ' . mysql_error(); exit; } // Liefert die Länge des Wertes in email, zum Beispiel // würde user@example.com die Länge von 16 ergeben $length = mysql_field_len($result, 'email'); echo $length; ?> ---- Manual Page -- http://www.php.net/manual/en/function.mysql-field-len.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60616 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60616&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60616&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60616&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60616&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60616&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60616&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60616&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60616&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101623) next »