mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix example.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183202 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
46597ad112
commit
00fa1c917a
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.17 -->
|
||||
<refentry id="function.mysql-field-len">
|
||||
<refnamediv>
|
||||
|
@ -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;
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue