From 7990427082721b073c3b64967d945f71746b0b60 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Wed, 23 Sep 2020 12:02:23 +0000 Subject: [PATCH] odbc_data_source(): fix refpurpose and return values, and add example This also integrates user note 37891. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350619 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../uodbc/functions/odbc-data-source.xml | 39 ++++++++++++++++++- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/reference/uodbc/functions/odbc-data-source.xml b/reference/uodbc/functions/odbc-data-source.xml index 7a1feeab0f..e11efacf6b 100644 --- a/reference/uodbc/functions/odbc-data-source.xml +++ b/reference/uodbc/functions/odbc-data-source.xml @@ -3,7 +3,7 @@ odbc_data_source - Returns information about a current connection + Returns information about available DSNs &reftitle.description; @@ -44,9 +44,44 @@ &reftitle.returnvalues; - Returns &false; on error, and an array upon success. + Returns &false; on error, an &array; upon success, and &null; after fetching + the last available DSN. + + + &reftitle.examples; + + List available DSNs + + +]]> + + &example.outputs.similar; + + dsn + [description] => ODBC Driver 17 for SQL Server +) +Array +( + [server] => other_dsn + [description] => Microsoft Access Driver (*.mdb, *.accdb) +)]]> + + + +