Skip to content

Commit d5f6e75

Browse files
author
Indieteq
committed
Update README.md
1 parent 58e35fc commit d5f6e75

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Diff for: README.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ PDO Database Class
33

44
A database class for PHP-MySQL which uses the PDO extension.
55

6-
## Feature overview
7-
- Simple fetching
8-
- Logger class
9-
106
## To use the class
117
#### 1. Edit the database settings in the settings.ini.php
128
```
@@ -27,17 +23,18 @@ require("Db.class.php");
2723
// The instance
2824
$db = new Db();
2925
```
30-
#### 4. Logs - Modify the rights of the logs folder
26+
#### 4. Logs - Modify the read/write rights of the root folder
27+
3128
Everytime an exception is thrown by the database class a log file gets created or modified.
32-
These logs are stored in the logs directory.
29+
These logs are stored in the logs directory. Which means the database class needs write access for the logs folder.
30+
If the files are on a webserver you'll have to modify the rights of the root folder otherwise you'll get a "Permission denied" error.
3331

3432
The log file is a simple plain text file with the current date('year-month-day') as filename.
3533

36-
If you want to use these files you''ll have to modify the rights of the logs folder.
37-
3834
## Examples
39-
40-
#### The table persons,
35+
Below some examples of the basic functions of the database class. I've included a SQL dump so you can easily test the database
36+
class functions.
37+
#### The persons table
4138
| id | firstname | lastname | sex | age
4239
|:-----------:|:------------:|:------------:|:------------:|:------------:|
4340
| 1 | John | Doe | M | 19

0 commit comments

Comments
 (0)