From 00fa1c917acdbef30b2d9d8d18cf2bd79c15a647 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 30 Mar 2005 19:23:51 +0000 Subject: [PATCH] Fix example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183202 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysql/functions/mysql-field-len.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/mysql/functions/mysql-field-len.xml b/reference/mysql/functions/mysql-field-len.xml index e8cd504139..2333a068b4 100644 --- a/reference/mysql/functions/mysql-field-len.xml +++ b/reference/mysql/functions/mysql-field-len.xml @@ -1,5 +1,5 @@ - + @@ -31,9 +31,9 @@ if (!$result) { exit; } -// Will get the length of the value in email so for example -// user@example.com would give us a length of 16 -$length = mysql_field_len($result, 'email'); +// Will get the length of the id field as specified in the database +// schema. +$length = mysql_field_len($result, 0); echo $length; ?> ]]>