diff options
author | Indieteq <admin@indieteq.com> | 2012-11-15 21:28:42 +0100 |
---|---|---|
committer | Indieteq <admin@indieteq.com> | 2012-11-15 21:28:42 +0100 |
commit | d5f6e752bdd7fb6548dda51b7f0dcf1e14321a74 (patch) | |
tree | c42fb45aa9183a1cff269af97dbea2275b1b9d91 /README.md | |
parent | 58e35fcb39740b596e2d128b6e6967eaf5f836eb (diff) | |
download | php-mysql-pdo-database-class-d5f6e752bdd7fb6548dda51b7f0dcf1e14321a74.zip php-mysql-pdo-database-class-d5f6e752bdd7fb6548dda51b7f0dcf1e14321a74.tar.gz php-mysql-pdo-database-class-d5f6e752bdd7fb6548dda51b7f0dcf1e14321a74.tar.bz2 |
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -3,10 +3,6 @@ PDO Database Class A database class for PHP-MySQL which uses the PDO extension. -## Feature overview -- Simple fetching -- Logger class - ## To use the class #### 1. Edit the database settings in the settings.ini.php ``` @@ -27,17 +23,18 @@ require("Db.class.php"); // The instance $db = new Db(); ``` -#### 4. Logs - Modify the rights of the logs folder +#### 4. Logs - Modify the read/write rights of the root folder + Everytime an exception is thrown by the database class a log file gets created or modified. -These logs are stored in the logs directory. +These logs are stored in the logs directory. Which means the database class needs write access for the logs folder. +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. The log file is a simple plain text file with the current date('year-month-day') as filename. -If you want to use these files you''ll have to modify the rights of the logs folder. - ## Examples - -#### The table persons, +Below some examples of the basic functions of the database class. I've included a SQL dump so you can easily test the database +class functions. +#### The persons table | id | firstname | lastname | sex | age |:-----------:|:------------:|:------------:|:------------:|:------------:| | 1 | John | Doe | M | 19 |