From c8c9653b23c89a527bcd2e7ffc9ae60e2d884827 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Tue, 7 Oct 2008 02:34:38 +0000 Subject: [PATCH] Part 1/2 of updates to MSSQL docs - Documented the following functions - mssql_rows_affected - mssql_guid_string - Added examples for the following functions - mssql_close - mssql_connect - mssql_num_rows - mssql_query - mssql_rows_affected - mssql_select_db - State that the following function parameter types has changed - mssql_bind - is_output and is_null is booleans - mssql_guid_string - short_Format is boolean git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@267030 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mssql/functions/mssql-bind.xml | 6 +-- reference/mssql/functions/mssql-close.xml | 24 +++++++++++- reference/mssql/functions/mssql-connect.xml | 26 ++++++++++++- .../mssql/functions/mssql-guid-string.xml | 39 +++++++++++++++++-- reference/mssql/functions/mssql-num-rows.xml | 28 ++++++++++++- reference/mssql/functions/mssql-query.xml | 30 +++++++++++++- .../mssql/functions/mssql-rows-affected.xml | 34 ++++++++++++++-- reference/mssql/functions/mssql-select-db.xml | 9 +++-- 8 files changed, 178 insertions(+), 18 deletions(-) diff --git a/reference/mssql/functions/mssql-bind.xml b/reference/mssql/functions/mssql-bind.xml index 6e91c90819..d3d80191cc 100644 --- a/reference/mssql/functions/mssql-bind.xml +++ b/reference/mssql/functions/mssql-bind.xml @@ -1,5 +1,5 @@ - + mssql_bind @@ -14,8 +14,8 @@ stringparam_name mixedvar inttype - intis_output - intis_null + boolis_output + boolis_null intmaxlen diff --git a/reference/mssql/functions/mssql-close.xml b/reference/mssql/functions/mssql-close.xml index fa8fed44c1..7578efafbf 100644 --- a/reference/mssql/functions/mssql-close.xml +++ b/reference/mssql/functions/mssql-close.xml @@ -1,5 +1,5 @@ - + mssql_close @@ -52,6 +52,28 @@ + + &reftitle.examples; + + + <function>mssql_close</function> example + + +]]> + + + + + &reftitle.seealso; diff --git a/reference/mssql/functions/mssql-connect.xml b/reference/mssql/functions/mssql-connect.xml index e989d2395c..54831e9443 100644 --- a/reference/mssql/functions/mssql-connect.xml +++ b/reference/mssql/functions/mssql-connect.xml @@ -1,5 +1,5 @@ - + mssql_connect @@ -104,6 +104,30 @@ + + &reftitle.examples; + + + <function>mssql_connect</function> example + +\ +$server = 'KALLESPC\SQLEXPRESS'; + +$link = mssql_connect($server, 'sa', 'phpfi'); + +if(!$link) +{ + die('Something went wrong while connecting to MSSQL'); +} +?> +]]> + + + + + &reftitle.seealso; diff --git a/reference/mssql/functions/mssql-guid-string.xml b/reference/mssql/functions/mssql-guid-string.xml index a37bd8647d..1cf6a68e14 100644 --- a/reference/mssql/functions/mssql-guid-string.xml +++ b/reference/mssql/functions/mssql-guid-string.xml @@ -1,5 +1,5 @@ - + mssql_guid_string @@ -11,15 +11,46 @@ stringmssql_guid_string stringbinary - intshort_format + boolshort_format + + Converts a 16 byte binary GUID to a string. + + - &warn.undocumented.func; + + &reftitle.parameters; + + + + binary + + + A 16 byte binary GUID. + + + + + short_format + + + ... + + + + + + + + &reftitle.returnvalues; + + Returns the converted string on success. + - +< + mssql_num_rows @@ -42,6 +42,32 @@ + + &reftitle.examples; + + + <function>mssql_num_rows</function> example + + +]]> + + + + + &reftitle.seealso; diff --git a/reference/mssql/functions/mssql-query.xml b/reference/mssql/functions/mssql-query.xml index 7bcc0ed8f1..fcb4b14955 100644 --- a/reference/mssql/functions/mssql-query.xml +++ b/reference/mssql/functions/mssql-query.xml @@ -1,5 +1,5 @@ - + mssql_query @@ -68,6 +68,34 @@ + + &reftitle.examples; + + + <function>mssql_query</function> example + + +]]> + + + + + &reftitle.notes; diff --git a/reference/mssql/functions/mssql-rows-affected.xml b/reference/mssql/functions/mssql-rows-affected.xml index 929a28a5c5..0b862df247 100644 --- a/reference/mssql/functions/mssql-rows-affected.xml +++ b/reference/mssql/functions/mssql-rows-affected.xml @@ -1,5 +1,5 @@ - + mssql_rows_affected @@ -12,9 +12,9 @@ intmssql_rows_affected resourcelink_identifier - - &warn.undocumented.func; - + + Returns the number of records affected by the last write query. + @@ -35,6 +35,32 @@ + + &reftitle.returnvalues; + + Returns the number of records affected by last operation. + + + + + &reftitle.examples; + + + <function>mssql_rows_affected</function> example + + +]]> + + + + + + mssql_select_db @@ -77,8 +77,11 @@ ]]>