Skip to content

Commit

Permalink
CHANGE: readme headlines
Browse files Browse the repository at this point in the history
  • Loading branch information
turbopixel authored and turbopixel committed Aug 18, 2019
1 parent f29eef7 commit 1916d5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $PHPDO = new PHPDO();
$PHPDO->connect("database-server.com", "database_name", "user_name", "myPassword123");
```

#### Get instance
### Get instance

**DB::getInstance()** returns PHPDO instance
```php
Expand All @@ -31,7 +31,7 @@ DB::getInstance()->query("SELECT * FROM user")->fetchAll();
$PHPDO->getPdo();
```

#### Run MySQL query
### Run MySQL query

**query**
```php
Expand All @@ -49,14 +49,14 @@ $PHPDO->execute("UPDATE user SET active = 0 WHERE mail IS NULL");
$PHPDO->prepare("SELECT id FROM user WHERE id = :userid", ["userid" => 553]);
```

#### Helper
### Helper

**Check table exists (MySQL only)**
```php
$PHPDO->isTable("user_settings")
```

### Internal class logging
## Internal class logging

All SQL Queries stored in PHPDO::$logs (array)

Expand Down

0 comments on commit 1916d5b

Please sign in to comment.