Programming Guide for PHP SQL Driver


DownloadDownload PHP Driver

This section contains topics that help you develop applications with the Microsoft Drivers for PHP for SQL Server.

Connecting to the ServerDescribes the options and procedures for connecting to SQL Server.
Comparing Execution FunctionsCompares the functions that are used to execute a query by examining different use cases for each. Specifically, this document compares executing a single query with executing a prepared query multiple times.
Direct Statement Execution and Prepared Statement Execution in the PDO_SQLSRV DriverDiscusses how to use the PDO::SQLSRV_ATTR_DIRECT_QUERY attribute to specify direct statement execution instead of the default, which is prepared statement execution.
Retrieving DataExamines the various ways that data can be retrieved.
Updating DataAddresses how to update data in a database by examining common use cases.
Converting Data TypesAddresses how to specify data types and provide details on default data types.
Handling Errors and WarningsAddresses how to handle errors and warnings.
Logging ActivityProvides information about logging errors and warnings.
Security Considerations for PHP SQL DriverDescribes security considerations for developing, deploying, and running applications.

Overview of the PHP SQL DriverGetting Started with the PHP SQL DriverSQLSRV Driver API Reference
Constants (Microsoft Drivers for PHP for SQL Server)
Example Application (SQLSRV Driver)

Community Additions