From a2589d4f6a6e156e556c5368059a540ce53ef802 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 14 Jul 2004 21:08:10 +0000 Subject: [PATCH] Added an example, and see also. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@163326 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mysql/functions/mysql-fetch-lengths.xml | 42 ++++++++++++++++++- reference/mysql/functions/mysql-fetch-row.xml | 22 +++++++++- .../mysql/functions/mysql-field-flags.xml | 34 ++++++++++++++- reference/mysql/functions/mysql-field-len.xml | 27 +++++++++++- .../mysql/functions/mysql-field-table.xml | 25 ++++++++++- 5 files changed, 144 insertions(+), 6 deletions(-) diff --git a/reference/mysql/functions/mysql-fetch-lengths.xml b/reference/mysql/functions/mysql-fetch-lengths.xml index 225c950262..639e1c7f9a 100644 --- a/reference/mysql/functions/mysql-fetch-lengths.xml +++ b/reference/mysql/functions/mysql-fetch-lengths.xml @@ -1,5 +1,5 @@ - + @@ -23,12 +23,50 @@ mysql_fetch_lengths stores the lengths of each result column in the last row returned by mysql_fetch_row, + mysql_fetch_assoc, mysql_fetch_array, and mysql_fetch_object in an array, starting at offset 0. - See also mysql_fetch_row. + + A <function>mysql_fetch_lengths</function> example + + 42 + [email] => user@example.com +) +Array +( + [0] => 2 + [1] => 16 +) + +*/ +?> +]]> + + + + + See also mysql_fetch_len, + mysql_fetch_row, and + strlen. diff --git a/reference/mysql/functions/mysql-fetch-row.xml b/reference/mysql/functions/mysql-fetch-row.xml index 17eae5a54f..4664a05f49 100644 --- a/reference/mysql/functions/mysql-fetch-row.xml +++ b/reference/mysql/functions/mysql-fetch-row.xml @@ -1,5 +1,5 @@ - + @@ -27,6 +27,26 @@ return the next row in the result set, or &false; if there are no more rows. + + + Fetching one row with <function>mysql_fetch_row</function> + + +]]> + + + See also mysql_fetch_array, diff --git a/reference/mysql/functions/mysql-field-flags.xml b/reference/mysql/functions/mysql-field-flags.xml index 92a0d60b2c..7aef3e1d28 100644 --- a/reference/mysql/functions/mysql-field-flags.xml +++ b/reference/mysql/functions/mysql-field-flags.xml @@ -1,5 +1,5 @@ - + @@ -26,6 +26,38 @@ "unique_key", "multiple_key", "blob", "unsigned", "zerofill", "binary", "enum", "auto_increment", "timestamp". + + + A <function>mysql_field_flags</function> example + + not_null + [1] => primary_key + [2] => auto_increment +) + +*/ +?> +]]> + + + For downward compatibility mysql_fieldflags can also be used. This is deprecated, however. diff --git a/reference/mysql/functions/mysql-field-len.xml b/reference/mysql/functions/mysql-field-len.xml index f4fd212e3e..a1a8d63bd8 100644 --- a/reference/mysql/functions/mysql-field-len.xml +++ b/reference/mysql/functions/mysql-field-len.xml @@ -1,5 +1,5 @@ - + @@ -19,10 +19,35 @@ mysql_field_len returns the length of the specified field. + + + A <function>mysql_fetch_len</function> example + + +]]> + + + For downward compatibility mysql_fieldlen can also be used. This is deprecated, however. + + See also mysql_fetch_lengths and + strlen. + diff --git a/reference/mysql/functions/mysql-field-table.xml b/reference/mysql/functions/mysql-field-table.xml index bde42546b6..68f8bea5e3 100644 --- a/reference/mysql/functions/mysql-field-table.xml +++ b/reference/mysql/functions/mysql-field-table.xml @@ -1,5 +1,5 @@ - + @@ -19,10 +19,33 @@ Returns the name of the table that the specified field is in. + + + A <function>mysql_field_table</function> example + + +]]> + + + For downward compatibility mysql_fieldtable can also be used. This is deprecated, however. + + See also mysql_list_tables. +