cvs: phpdoc-it /reference/mssql/functions mssql-select-db.xml

From: Date: Fri, 11 Jul 2003 19:54:34 +0000
Subject: cvs: phpdoc-it /reference/mssql/functions mssql-select-db.xml
Groups: php.doc.it 
Request: Send a blank email to doc-it+get-434@lists.php.net to get a copy of this message
darvina Fri Jul 11 15:54:34 2003 EDT Modified files: /phpdoc-it/reference/mssql/functions mssql-select-db.xml Log: Update to En 1.3 Index: phpdoc-it/reference/mssql/functions/mssql-select-db.xml diff -u phpdoc-it/reference/mssql/functions/mssql-select-db.xml:1.2 phpdoc-it/reference/mssql/functions/mssql-select-db.xml:1.3 --- phpdoc-it/reference/mssql/functions/mssql-select-db.xml:1.2 Wed Apr 17 03:07:28 2002 +++ phpdoc-it/reference/mssql/functions/mssql-select-db.xml Fri Jul 11 15:54:34 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/mssql.xml, last change in rev 1.7 --> <!-- last change to 'mssql-select-db' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready --> <!-- OLD-Revision: 1.30/EN.1.2 --> <refentry id="function.mssql-select-db"> <refnamediv> @@ -29,6 +29,22 @@ Ciascuna esecuzione di <function>mssql_query</function> sarà fatta sul database attivo. </para> + <para> + Per potere selezionare un database contenente un nome o un trattivo ("-") nel + nome occorre racchiudere il nome stesso tra parantesi quadre, + come illustrato nell'esempio seguente: + </para> + <example> + <title>Esempio di <function>mssql_select_db</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + $conn = mssql_connect('MYSQLSERVER', 'sa', 'password'); + mssql_select_db('[my data-base]', $conn); +?> +]]> + </programlisting> + </example> <para> Vedere anche: <function>mssql_connect</function>, <function>mssql_pconnect</function>, e

« previous php.doc.it (#434) next »