From 6926843be0f2232db8df2b81f675b2fec1131ab9 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 14 Apr 2005 00:42:43 +0000 Subject: [PATCH] Document db2_fetch_row and db2_result. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@184308 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/ibm_db2/functions/db2-fetch-row.xml | 121 ++++++++---------- reference/ibm_db2/functions/db2-result.xml | 85 +++++------- 2 files changed, 84 insertions(+), 122 deletions(-) diff --git a/reference/ibm_db2/functions/db2-fetch-row.xml b/reference/ibm_db2/functions/db2-fetch-row.xml index 3432bdaf06..37676aa3ad 100644 --- a/reference/ibm_db2/functions/db2-fetch-row.xml +++ b/reference/ibm_db2/functions/db2-fetch-row.xml @@ -1,11 +1,11 @@ - + db2_fetch_row - Sets the fetch pointer to the next or requested row in a result set + Sets the result set pointer to the next row or requested row @@ -16,7 +16,24 @@ introw_number - &warn.undocumented.func; + &warn.experimental.func; + + + Use db2_fetch_row to iterate through a result set, or + to point to a specific row in a result set if you requested a scrollable + cursor. + + + To retrieve individual fields from the result set, call the + db2_result function. + + + Rather than calling db2_fetch_row and + db2_result, most applications will call one of + db2_fetch_assoc, db2_fetch_both, + or db2_fetch_into to advance the result set pointer + and return a complete row as an array. + @@ -25,82 +42,52 @@ stmt - - - Its description - - - + + + A valid stmt resource. + + + row_number - - - Its description - - - + + + With scrollable cursors, you can request a specific row number in the + result set. Row numbering is 1-indexed. + + + &reftitle.returnvalues; - What the function returns, first on success, then on failure. See - also the &return.success; entity + Returns &true; if the requested row exists in the result set. Returns + &false; if the requested row does not exist in the result set. - - - - - - - - - - diff --git a/reference/ibm_db2/functions/db2-result.xml b/reference/ibm_db2/functions/db2-result.xml index 642e531f4c..7d051c50f3 100644 --- a/reference/ibm_db2/functions/db2-result.xml +++ b/reference/ibm_db2/functions/db2-result.xml @@ -1,5 +1,5 @@ - + @@ -16,7 +16,15 @@ mixedcolumn - &warn.undocumented.func; + &warn.experimental.func; + + + Use db2_result to return the value of a specified + column in the current row of a result set. You must call + db2_fetch_row before calling + db2_result to set the location of the result set + pointer. + @@ -27,7 +35,7 @@ stmt - Its description + A valid stmt resource. @@ -35,7 +43,8 @@ column - Its description + Either an integer mapping to the 0-indexed field in the result set, or + a string matching the name of the column. @@ -45,62 +54,31 @@ &reftitle.returnvalues; - What the function returns, first on success, then on failure. See - also the &return.success; entity + Returns the value of the requested field if the field exists in the result + set. Returns NULL if the field does not exist, and issues a warning. - - - - - - - - - -