PHPackages                             lincanbin/php-pdo-mysql-class - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. lincanbin/php-pdo-mysql-class

ActiveLibrary[Database &amp; ORM](/categories/database)

lincanbin/php-pdo-mysql-class
=============================

A PHP MySQL PDO class similar to the Python MySQLdb, which supports iterator and parameter binding when using 'WHERE IN' statement.

v2.2(5y ago)2376.7k↓33.9%110[13 issues](https://github.com/lincanbin/PHP-PDO-MySQL-Class/issues)[2 PRs](https://github.com/lincanbin/PHP-PDO-MySQL-Class/pulls)Apache-2.0PHPPHP &gt;=5.3.6

Since Apr 30Pushed 5y ago24 watchersCompare

[ Source](https://github.com/lincanbin/PHP-PDO-MySQL-Class)[ Packagist](https://packagist.org/packages/lincanbin/php-pdo-mysql-class)[ RSS](/packages/lincanbin-php-pdo-mysql-class/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)DependenciesVersions (6)Used By (0)

PHP-PDO-MySQL-Class [![Build Status](https://camo.githubusercontent.com/8eb80f0eb3a399644a628fa0e9539dcb3b5bb34511b2a8f173a87da615390c56/68747470733a2f2f7472617669732d63692e6f72672f6c696e63616e62696e2f5048502d50444f2d4d7953514c2d436c6173732e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/lincanbin/PHP-PDO-MySQL-Class)
============================================================================================================================================================================================================================================================================================================================================

[](#php-pdo-mysql-class-)

A PHP MySQL PDO class similar to the Python MySQLdb, which supports iterator and parameter binding when using "WHERE IN" statement.

- [Install](#install)
- [Initialize](#initialize)
- [Preventing SQL Injection Attacks](#preventing-sql-injection-attacks)
- [Basic Usage](#basic-usage)
- [Transaction](#transaction)
- [Iterator](#iterator)

Install
-------

[](#install)

Copy the files under `src/` to your program

OR

```
composer require lincanbin/php-pdo-mysql-class

```

Initialize
----------

[](#initialize)

```
