Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6d0fece

Browse files
Update documentation.
1 parent d071820 commit 6d0fece

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

‎README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
PHP-PDO-MySQL-Class [![Build Status](https://travis-ci.org/lincanbin/PHP-PDO-MySQL-Class.svg?branch=develop)](https://travis-ci.org/lincanbin/PHP-PDO-MySQL-Class)
22
===================
33

4-
A PHP MySQL PDO class similar to the the Python MySQLdb.
4+
A PHP MySQL PDO class similar to the the Python MySQLdb,
5+
which supports iterator and parameter binding when using "WHERE IN" statement.
6+
7+
* [Install](#install)
8+
9+
* [Initialize](#initialize)
10+
11+
* [Preventing SQL Injection Attacks](#preventing-sql-injection-attacks)
12+
13+
* [Basic Usage](#basic-usage)
14+
15+
* [Iterator](#iterator)
16+
517

618
Install
719
------------
@@ -22,7 +34,7 @@ define('DBPort', 3306);
2234
define('DBName', 'Database');
2335
define('DBUser', 'root');
2436
define('DBPassword', '');
25-
require(dirname(__FILE__)."/src/PDO.class.php");
37+
require(__DIR__ . "/src/PDO.class.php");
2638
$DB = new Db(DBHost, DBPort, DBName, DBUser, DBPassword);
2739
?>
2840
```
@@ -45,7 +57,7 @@ Unsafety Example:
4557
$DB->query("SELECT * FROM fruit WHERE name=".$_GET['name']);
4658
?>
4759
```
48-
Usage
60+
Basic Usage
4961
------------
5062

5163
#### table "fruit"

‎composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"keywords": [
44
"pdo",
55
"mysql",
6-
"database"
6+
"database",
7+
"iterator"
78
],
8-
"description": "A PHP MySQL PDO class similar to the the Python MySQLdb, which supports parameter binding when using 'WHERE IN' statement.",
9+
"description": "A PHP MySQL PDO class similar to the the Python MySQLdb, which supports iterator and parameter binding when using 'WHERE IN' statement.",
910
"license": "Apache License Version 2.0",
1011
"authors": [
1112
{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /