Skip to content

Commit 5fe0ea9

Browse files
part 3
1 parent 9a98e7c commit 5fe0ea9

39 files changed

Lines changed: 168 additions & 119 deletions

docs/connect/php/pdo-begintransaction.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ bool PDO::beginTransaction();
3535
true if the method call succeeded, false otherwise.
3636

3737
## Remarks
38-
The transaction begun with PDO::beginTransaction will end when [PDO::commit](../../connect/php/pdo-commit.md) or [PDO::rollback](../../connect/php/pdo-rollback.md) is called.
38+
The transaction begun with PDO::beginTransaction ends when [PDO::commit](../../connect/php/pdo-commit.md) or [PDO::rollback](../../connect/php/pdo-rollback.md) is called.
3939

4040
PDO::beginTransaction is not affected by (and does not affect) the value of PDO::ATTR_AUTOCOMMIT.
4141

4242
You are not allowed to call PDO::beginTransaction before the previous PDO::beginTransaction is ended with PDO::rollback or PDO::commit.
4343

44-
The connection will return to auto commit mode if this method fails.
44+
The connection returns to auto commit mode if this method fails.
4545

4646
Support for PDO was added in version 2.0 of the [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)].
4747

@@ -62,6 +62,7 @@ The following example uses a database called Test and a table called Table1. It
6262
```
6363

6464
## See Also
65-
[PDO Class](../../connect/php/pdo-class.md)
66-
[PDO](http://go.microsoft.com/fwlink/?LinkID=187441)
65+
[PDO Class](../../connect/php/pdo-class.md)
66+
67+
[PDO](http://php.net/manual/book.pdo.php)
6768

docs/connect/php/pdo-class.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "PDO Class | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "01/19/2017"
4+
ms.date: "02/16/2018"
55
ms.prod: "sql-non-specified"
66
ms.prod_service: "drivers"
77
ms.service: ""
@@ -65,10 +65,15 @@ The PDO class contains the following methods:
6565
Support for PDO was added in version 2.0 of the [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)].
6666

6767
## See Also
68-
[PDO_SQLSRV Driver Reference](../../connect/php/pdo-sqlsrv-driver-reference.md)
69-
[Overview of the PHP SQL Driver](../../connect/php/overview-of-the-php-sql-driver.md)
70-
[Constants (Microsoft Drivers for PHP for SQL Server)](../../connect/php/constants-microsoft-drivers-for-php-for-sql-server.md)
71-
[Programming Guide for PHP SQL Driver](../../connect/php/programming-guide-for-php-sql-driver.md)
72-
[Getting Started with the PHP SQL Driver](../../connect/php/getting-started-with-the-php-sql-driver.md)
73-
[PDO](http://go.microsoft.com/fwlink/?LinkID=187441)
68+
[PDO_SQLSRV Driver Reference](../../connect/php/pdo-sqlsrv-driver-reference.md)
69+
70+
[Overview of the Microsoft Drivers for PHP for SQL Server](../../connect/php/overview-of-the-php-sql-driver.md)
71+
72+
[Constants (Microsoft Drivers for PHP for SQL Server)](../../connect/php/constants-microsoft-drivers-for-php-for-sql-server.md)
73+
74+
[Programming Guide for the Microsoft Drivers for PHP for SQL Server](../../connect/php/programming-guide-for-php-sql-driver.md)
75+
76+
[Getting Started with the Microsoft Drivers for PHP for SQL Server](../../connect/php/getting-started-with-the-php-sql-driver.md)
77+
78+
[PDO](http://php.net/manual/book.pdo.php)
7479

docs/connect/php/pdo-commit.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ See [PDO::beginTransaction](../../connect/php/pdo-begintransaction.md) for an ex
4242
Support for PDO was added in version 2.0 of the [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)].
4343

4444
## See Also
45-
[PDO Class](../../connect/php/pdo-class.md)
46-
[PDO](http://go.microsoft.com/fwlink/?LinkID=187441)
45+
[PDO Class](../../connect/php/pdo-class.md)
46+
47+
[PDO](http://php.net/manual/book.pdo.php)
4748

docs/connect/php/pdo-construct.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ PDO::__construct($dsn [,$username [,$password [,$driver_options ]]] )
3232
```
3333

3434
#### Parameters
35-
*$dsn*: A string that contains the prefix name (always `sqlsrv`), a colon, and the Server keyword. For example `"sqlsrv:server=(local)"`. You can optionally specify other connection keywords. See [Connection Options](../../connect/php/connection-options.md) for a description of the Server keyword and the other connection keywords. The entire *$dsn* is in quotation marks, so each connection keyword should not be individually quoted.
35+
*$dsn*: A string that contains the prefix name (always `sqlsrv`), a colon, and the Server keyword. For example, `"sqlsrv:server=(local)"`. You can optionally specify other connection keywords. See [Connection Options](../../connect/php/connection-options.md) for a description of the Server keyword and the other connection keywords. The entire *$dsn* is in quotation marks, so each connection keyword should not be individually quoted.
3636

3737
*$username*: Optional. A string that contains the user's name. To connect using [!INCLUDE[ssNoVersion](../../includes/ssnoversion_md.md)] Authentication, specify the login ID. To connect using Windows Authentication, specify `""`.
3838

3939
*$password*: Optional. A string that contains the user's password. To connect using [!INCLUDE[ssNoVersion](../../includes/ssnoversion_md.md)] Authentication, specify the password. To connect using Windows Authentication, specify `""`.
4040

41-
*$driver_options*: Optional. You can specify PDO Driver Manager attributes, and [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)] specific driver attributes -- PDO::SQLSRV_ATTR_ENCODING, PDO::SQLSRV_ATTR_DIRECT_QUERY. An invalid attribute will not generate an exception. Invalid attributes generate exceptions when specified with [PDO::setAttribute](../../connect/php/pdo-setattribute.md).
41+
*$driver_options*: Optional. You can specify PDO Driver Manager attributes, and [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)] specific driver attributes -- PDO::SQLSRV_ATTR_ENCODING, PDO::SQLSRV_ATTR_DIRECT_QUERY. An invalid attribute does not generate an exception. Invalid attributes generate exceptions when specified with [PDO::setAttribute](../../connect/php/pdo-setattribute.md).
4242

4343
## Return Value
4444
Returns a PDO object. If failure, returns a PDOException object.
@@ -49,9 +49,9 @@ PDOException
4949
## Remarks
5050
You can close a connection object by setting the instance to null.
5151

52-
After a connection, PDO::errorCode will display 01000 instead of 00000.
52+
After a connection, PDO::errorCode displays 01000 instead of 00000.
5353

54-
If PDO::__construct fails for any reason, an exception will be thrown, even if PDO::ATTR_ERRMODE is set to PDO::ERRMODE_SILENT.
54+
If PDO::__construct fails for any reason, an exception is thrown, even if PDO::ATTR_ERRMODE is set to PDO::ERRMODE_SILENT.
5555

5656
Support for PDO was added in version 2.0 of the [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)].
5757

@@ -89,6 +89,7 @@ This example shows how to connect to a server, specifying the database later.
8989
```
9090

9191
## See Also
92-
[PDO Class](../../connect/php/pdo-class.md)
93-
[PDO](http://go.microsoft.com/fwlink/?LinkID=187441)
92+
[PDO Class](../../connect/php/pdo-class.md)
93+
94+
[PDO](http://php.net/manual/book.pdo.php)
9495

docs/connect/php/pdo-errorcode.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ mixed PDO::errorCode();
3535
PDO::errorCode returns a five-char SQLSTATE as a string or NULL if there was no operation on the database handle.
3636

3737
## Remarks
38-
PDO::errorCode in the PDO_SQLSRV driver will return warnings on some successful operations. For example, on a successful connection, PDO::errorCode will return "01000" indicating SQL_SUCCESS_WITH_INFO.
38+
PDO::errorCode in the PDO_SQLSRV driver returns warnings on some successful operations. For example, on a successful connection, PDO::errorCode returns "01000" indicating SQL_SUCCESS_WITH_INFO.
3939

40-
PDO::errorCode only retrieves error codes for operations performed directly on the database connection. If you create a PDOStatement instance through PDO::prepare or PDO::query and generate an error on the statement object, PDO::errorCode will not retrieve that error. You must call PDOStatement::errorCode to return the error code for an operation performed on a particular statement object.
40+
PDO::errorCode only retrieves error codes for operations performed directly on the database connection. If you create a PDOStatement instance through PDO::prepare or PDO::query and an error is generated on the statement object, PDO::errorCode does not retrieve that error. You must call PDOStatement::errorCode to return the error code for an operation performed on a particular statement object.
4141

4242
Support for PDO was added in version 2.0 of the [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)].
4343

@@ -55,6 +55,7 @@ print $conn->errorCode();
5555
```
5656

5757
## See Also
58-
[PDO Class](../../connect/php/pdo-class.md)
59-
[PDO](http://go.microsoft.com/fwlink/?LinkID=187441)
58+
[PDO Class](../../connect/php/pdo-class.md)
59+
60+
[PDO](http://php.net/manual/book.pdo.php)
6061

docs/connect/php/pdo-errorinfo.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ An array of error information about the most recent operation on the database ha
4040

4141
- The driver-specific error message.
4242

43-
If there is no error, or if the SQLSTATE is not set, the driver-specific fields will be NULL.
43+
If there is no error, or if the SQLSTATE is not set, then the driver-specific fields are NULL.
4444

4545
## Remarks
4646
PDO::errorInfo only retrieves error information for operations performed directly on the database. Use PDOStatement::errorInfo when a PDOStatement instance is created using PDO::prepare or PDO::query.
@@ -63,6 +63,7 @@ print_r ($conn->errorInfo());
6363
```
6464

6565
## See Also
66-
[PDO Class](../../connect/php/pdo-class.md)
67-
[PDO](http://go.microsoft.com/fwlink/?LinkID=187441)
66+
[PDO Class](../../connect/php/pdo-class.md)
67+
68+
[PDO](http://php.net/manual/book.pdo.php)
6869

docs/connect/php/pdo-exec.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The following attributes affect the behavior of PDO::exec:
5050

5151
- PDO::SQLSRV_ATTR_QUERY_TIMEOUT
5252

53-
See [PDO::setAttribute](../../connect/php/pdo-setattribute.md) for more information.
53+
For more information, see [PDO::setAttribute](../../connect/php/pdo-setattribute.md).
5454

5555
Support for PDO was added in version 2.0 of the [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)].
5656

@@ -68,6 +68,7 @@ This example deletes rows in Table1 that have 'xxxyy' in col1. The example then
6868
```
6969

7070
## See Also
71-
[PDO Class](../../connect/php/pdo-class.md)
72-
[PDO](http://go.microsoft.com/fwlink/?LinkID=187441)
71+
[PDO Class](../../connect/php/pdo-class.md)
72+
73+
[PDO](http://php.net/manual/book.pdo.php)
7374

docs/connect/php/pdo-getattribute.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ print_r($conn->getAttribute( PDO::ATTR_CLIENT_VERSION ));
9090
```
9191

9292
## See Also
93-
[PDO Class](../../connect/php/pdo-class.md)
94-
[PDO](http://go.microsoft.com/fwlink/?LinkID=187441)
93+
[PDO Class](../../connect/php/pdo-class.md)
94+
95+
[PDO](http://php.net/manual/book.pdo.php)
9596

docs/connect/php/pdo-getavailabledrivers.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ print_r(PDO::getAvailableDrivers());
5050
```
5151

5252
## See Also
53-
[PDO Class](../../connect/php/pdo-class.md)
54-
[PDO](http://go.microsoft.com/fwlink/?LinkID=187441)
53+
[PDO Class](../../connect/php/pdo-class.md)
54+
55+
[PDO](http://php.net/manual/book.pdo.php)
5556

docs/connect/php/pdo-lastinsertid.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ try{
142142
```
143143

144144
## See Also
145-
[PDO Class](../../connect/php/pdo-class.md)
146-
[PDO](http://go.microsoft.com/fwlink/?LinkID=187441)
145+
[PDO Class](../../connect/php/pdo-class.md)
146+
147+
[PDO](http://php.net/manual/book.pdo.php)
147148

0 commit comments

Comments
 (0)