Skip to content

Commit d652113

Browse files
authored
Updated docs for DB class
1 parent bd6ce96 commit d652113

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
# PHP-Library
22
Some useful php libraries for easing code :)
3+
4+
## Working with DB (PDO)
5+
6+
### Instantiating Object and setting table
7+
8+
```php
9+
$db = new DB();
10+
$db->table('tablename');
11+
12+
``
13+
## OR Do it directly (DID)
14+
```php
15+
// Fetching results
16+
DB::table('tablename')->get(); // will fetch every result from table
17+
```

0 commit comments

Comments
 (0)