diff --git a/reference/sqlite/functions/sqlite-fetch-single.xml b/reference/sqlite/functions/sqlite-fetch-single.xml new file mode 100644 index 0000000000..b3111b372f --- /dev/null +++ b/reference/sqlite/functions/sqlite-fetch-single.xml @@ -0,0 +1,69 @@ + + + + + sqlite_fetch_single + Fetches the first column of a result set as a string. + + + Description + + stringsqlite_fetch_single + resourceresult + intresult_type + booldecode_binary + + + sqlite_fetch_single is identical to + sqlite_fetch_array except that it returns the value + of the first column of the rowset. + + + This is the most optimial way to retrieve data when you are only + interested in the values from a single column of data. + + + + A <function>sqlite_fetch_single</function> example + + 0) { + echo sqlite_fetch_single($res); // 42 + } + + sqlite_close($db); +} +?> +]]> + + + + + See also sqlite_fetch_array. + + + + diff --git a/reference/sqlite/functions/sqlite-fetch-string.xml b/reference/sqlite/functions/sqlite-fetch-string.xml index f5540243c8..77d9a94c9c 100644 --- a/reference/sqlite/functions/sqlite-fetch-string.xml +++ b/reference/sqlite/functions/sqlite-fetch-string.xml @@ -1,29 +1,14 @@ - + sqlite_fetch_string - Fetches the first column of a result set as a string. + Alias of sqlite_fetch_single Description - - stringsqlite_fetch_string - resourceresult - intresult_type - booldecode_binary - - sqlite_fetch_string is identical to - sqlite_fetch_array except that it returns the value - of the first column of the rowset. - - - This is the most optimial way to retrieve data when you are only - interested in the values from a single column of data. - - - See also sqlite_fetch_array. + This function is an alias of sqlite_fetch_single.