* Added undocumented constant SQLFLT4

* Added missing information about resource types in MSSQL
* Fixed some re-wording around the docs and some other cleanup


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@267105 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kalle Sommer Nielsen 2008-10-09 08:48:10 +00:00
parent 07e081dd58
commit a523db9358
12 changed files with 61 additions and 32 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<appendix xml:id="mssql.constants" xmlns="http://docbook.org/ns/docbook">
&reftitle.constants;
&extension.constants;
@ -131,6 +131,17 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>SQLFLT4</constant>
(<type>integer</type>)
</term>
<listitem>
<simpara>
Represents an four byte float.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>SQLFLT8</constant>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<refentry xml:id='function.mssql-execute' xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mssql_execute</refname>
@ -34,6 +34,7 @@
<term><parameter>skip_results</parameter></term>
<listitem>
<para>
Whenever to skip the results or not.
</para>
</listitem>
</varlistentry>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<refentry xml:id="function.mssql-fetch-array" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mssql_fetch_array</refname>
@ -81,7 +81,7 @@ if(!mssql_num_rows($query))
}
else
{
// The follow is equal to the code below:
// The following is equal to the code below:
//
// while($row = mssql_fetch_row($query))

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<refentry xml:id='function.mssql-fetch-assoc' xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mssql_fetch_assoc</refname>
@ -55,8 +55,8 @@ if(!mssql_num_rows($query))
}
else
{
// Print a nice list of users in the format of
// name (username)
// Print a nice list of users in the format of:
// * name (username)
echo '<ul>';

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<refentry xml:id='function.mssql-fetch-batch' xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mssql_fetch_batch</refname>
@ -57,7 +57,7 @@ mssql_select_db('php', $link);
$result = mssql_query('SELECT * FROM [php].[dbo].[people]', $link, 100);
$records = 10;
while(($records - 1) != -1)
while($records >= 0)
{
while($row = mssql_fetch_assoc($result))
{

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<refentry xml:id="function.mssql-fetch-object" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mssql_fetch_object</refname>
@ -70,8 +70,8 @@ if(!mssql_num_rows($query))
}
else
{
// Print a nice list of users in the format of
// name (username)
// Print a nice list of users in the format of:
// * name (username)
echo '<ul>';

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<refentry xml:id="function.mssql-field-type" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mssql_field_type</refname>
@ -67,9 +67,9 @@ mssql_select_db('php');
$query = mssql_query('SELECT [name] FROM [php].[dbo].[persons]');
// Print the field type and length
echo '\'' . mssql_field_name($query, 0) . '\' is a type of ' .
strtoupper(mssql_field_type($query, 0)) .
'(' . mssql_field_length($query, 0) . ')';
echo '\'' . mssql_field_name($query, 0) . '\' is a type of ' .
strtoupper(mssql_field_type($query, 0)) .
'(' . mssql_field_length($query, 0) . ')';
// Free the query result
mssql_free_result($query);

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<refentry xml:id="function.mssql-free-statement" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mssql_free_statement</refname>
@ -56,7 +56,7 @@
// Create a new statement
$stmt = mssql_init('test');
// Bind values here and execute statement
// Bind values here and execute the statement
// once we're done, we clear it from the memory
// using mssql_free_statement like so:

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<refentry xml:id="function.mssql-get-last-message" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mssql_get_last_message</refname>
@ -54,7 +54,7 @@ if(!$query)
?>
]]>
</programlisting>
&example.outputs;
&example.outputs.similar;
<screen>
<![CDATA[
MSSQL error: Invalid object name 'php.dbo.not-found'.

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<refentry xml:id='function.mssql-init' xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mssql_init</refname>
@ -79,12 +79,6 @@ mssql_free_statement($stmt);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
MSSQL error: Invalid object name 'php.dbo.not-found'.
]]>
</screen>
</example>
</para>
</refsect1>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<section xml:id="mssql.configuration" xmlns="http://docbook.org/ns/docbook">
&reftitle.runtime;
&extension.runtime;
@ -104,7 +104,7 @@
<entry>mssql.charset</entry>
<entry>""</entry>
<entry>PHP_INI_ALL</entry>
<entry>Available since PHP 5.1.2 when built with FreeTDS.</entry>
<entry>Available since PHP 5.1.2 when built with FreeTDS 7.0 or greater.</entry>
</row>
</tbody>
</tgroup>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<chapter xml:id="mssql.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.setup;
@ -46,9 +46,9 @@
<literal>ntwdblib.dll</literal> into the directory where you have
installed php and overwrite the one thats already in there. This is
due to the version distributed is old and outdated. Alternatively you
can use the <link linkend="book.uodbc">ODBC extension</link>,
can use the <link linkend="book.uodbc">ODBC</link>,
<link linkend="ref.pdo-dblib">PDO_DBLIB</link> or
<link linkend="ref.pdo-odbc">PDO_ODBC</link>, to talk to MSSQL.
<link linkend="ref.pdo-odbc">PDO_ODBC</link> extensions, to talk to MSSQL.
</para>
</note>
</section>
@ -67,6 +67,29 @@
&reftitle.resources;
&no.resource;
</section>
<section xml:id="mssql.resources">
&reftitle.resources;
<section xml:id="mssql.resources.link">
<title>mssql link</title>
<para>
A connection link returned by <function>mssql_connect</function>
and <function>mssql_pconnect</function>.
</para>
</section>
<section xml:id="mssql.resources.result">
<title>mssql result</title>
<para>
A result handle returned by <function>mssql_query</function> on
<literal>SELECT</literal> queries.
</para>
</section>
<section xml:id="mssql.resources.statement">
<title>mssql statement</title>
<para>
A statement handle returned by <function>mssql_init</function>.
</para>
</section>
</section>
<!-- }}} -->
</chapter>