mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
typo & ws & parse error in exemples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@172807 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
4dee098cb5
commit
cb08ac869e
4 changed files with 44 additions and 44 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.PDO-construct">
|
||||
<refnamediv>
|
||||
<refname>PDO::__construct</refname>
|
||||
|
@ -25,34 +25,34 @@
|
|||
<variablelist>
|
||||
<varlistentry><term>Driver invocation</term>
|
||||
<listitem>
|
||||
<para>
|
||||
<parameter>dsn</parameter> consists of the PDO driver name, followed
|
||||
by a colon, followed by the PDO driver-specific connection syntax.
|
||||
For example, <userinput>'odbc:DSN=SAMPLE;UID=db2inst1;PWD=ibmdb2'</userinput>
|
||||
would create a PDO_ODBC connection to an ODBC database, while
|
||||
<userinput>'mysql:host=127.0.0.1;dbname=testdb'</userinput> would create
|
||||
a PDO_MYSQL connection to a MySQL database.
|
||||
</para>
|
||||
<para>
|
||||
<parameter>dsn</parameter> consists of the PDO driver name, followed
|
||||
by a colon, followed by the PDO driver-specific connection syntax.
|
||||
For example, <userinput>'odbc:DSN=SAMPLE;UID=db2inst1;PWD=ibmdb2'</userinput>
|
||||
would create a PDO_ODBC connection to an ODBC database, while
|
||||
<userinput>'mysql:host=127.0.0.1;dbname=testdb'</userinput> would create
|
||||
a PDO_MYSQL connection to a MySQL database.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term>URI invocation</term>
|
||||
<listitem>
|
||||
<para>
|
||||
<parameter>dsn</parameter> consists of <userinput>uri:</userinput>
|
||||
followed by a URI that defines the location of a file containing
|
||||
the DSN string. The URI can specify a local file or a remote URL.
|
||||
</para>
|
||||
<para>
|
||||
<parameter>dsn</parameter> consists of <userinput>uri:</userinput>
|
||||
followed by a URI that defines the location of a file containing
|
||||
the DSN string. The URI can specify a local file or a remote URL.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term>Aliasing</term>
|
||||
<listitem>
|
||||
<para>
|
||||
<parameter>dsn</parameter> consists of a name
|
||||
<parameter>name</parameter> that maps to
|
||||
<literal>pdo.dsn.<parameter>name</parameter></literal> in &php.ini;
|
||||
defining the DSN string. <parameter>name</parameter> can not contain
|
||||
a colon.
|
||||
</para>
|
||||
<para>
|
||||
<parameter>dsn</parameter> consists of a name
|
||||
<parameter>name</parameter> that maps to
|
||||
<literal>pdo.dsn.<parameter>name</parameter></literal> in &php.ini;
|
||||
defining the DSN string. <parameter>name</parameter> can not contain
|
||||
a colon.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
@ -64,7 +64,7 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
/* Connect to an ODBC database using driver invocation
|
||||
/* Connect to an ODBC database using driver invocation */
|
||||
|
||||
$dsn = 'mysql:dbname=testdb;host=127.0.0.1';
|
||||
$user = 'dbuser';
|
||||
|
@ -99,7 +99,7 @@ odbc:DSN=SAMPLE;UID=db2inst1;PWD=password
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
/* Connect to an ODBC database using driver invocation
|
||||
/* Connect to an ODBC database using driver invocation */
|
||||
|
||||
$dsn = 'uri:file:///usr/local/dbconnect';
|
||||
$user = '';
|
||||
|
@ -124,7 +124,7 @@ catch (PDOException $e) {
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
/* Connect to an ODBC database using an alias
|
||||
/* Connect to an ODBC database using an alias */
|
||||
|
||||
$dsn = 'mydb';
|
||||
$user = '';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. -->
|
||||
<refentry id="function.PDO-setAttribute">
|
||||
<refnamediv>
|
||||
|
@ -24,16 +24,16 @@
|
|||
<listitem><para>
|
||||
<literal>PDO_ATTR_CASE</literal>: Force column names to a specific case.
|
||||
<itemizedlist>
|
||||
<listitem><para>
|
||||
<literal>PDO_CASE_LOWER</literal>: Force column names to lower case.
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<literal>PDO_CASE_NATURAL</literal>: Leave column names as returned by
|
||||
the database driver.
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<literal>PDO_CASE_UPPER</literal>: Force column names to upper case.
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<literal>PDO_CASE_LOWER</literal>: Force column names to lower case.
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<literal>PDO_CASE_NATURAL</literal>: Leave column names as returned by
|
||||
the database driver.
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<literal>PDO_CASE_UPPER</literal>: Force column names to upper case.
|
||||
</para></listitem>
|
||||
</itemizedlist>
|
||||
</para></listitem>
|
||||
</itemizedlist>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. -->
|
||||
<refentry id="function.PDOStatement-execute">
|
||||
<refnamediv>
|
||||
|
@ -48,7 +48,7 @@ $sth->execute();
|
|||
<programlisting role='php'>
|
||||
<![CDATA[
|
||||
<?php
|
||||
/* Execute a prepared statement by passing an arary of insert values */
|
||||
/* Execute a prepared statement by passing an array of insert values */
|
||||
$calories = 150;
|
||||
$colour = 'red';
|
||||
$sth = $dbh->prepare('SELECT name, colour, calories
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. -->
|
||||
<reference id="ref.pdo">
|
||||
<title>PDO Functions</title>
|
||||
|
@ -67,32 +67,32 @@ extension=pdo.dll
|
|||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
PDO_FIREBIRD - Firebird/Interbase 6
|
||||
PDO_FIREBIRD - Firebird/Interbase 6
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
PDO_MYSQL - MySQL 3.x/4.0
|
||||
PDO_MYSQL - MySQL 3.x/4.0
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
PDO_OCI - Oracle Call Interface
|
||||
PDO_OCI - Oracle Call Interface
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
PDO_ODBC - ODBC v3 (IBM DB2 and unixODBC)
|
||||
PDO_ODBC - ODBC v3 (IBM DB2 and unixODBC)
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
PDO_PGSQL - PostgreSQL
|
||||
PDO_PGSQL - PostgreSQL
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
PDO_SQLITE - SQLite 3.x
|
||||
PDO_SQLITE - SQLite 3.x
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
|
Loading…
Reference in a new issue