diff options
Diffstat (limited to 'Db.class.php')
-rw-r--r-- | Db.class.php | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/Db.class.php b/Db.class.php index 0798c72..469e2e9 100644 --- a/Db.class.php +++ b/Db.class.php @@ -1,12 +1,12 @@ <?php - /* * - * DB - A simple database class - * - * @author Author: Vivek Wicky Aswal. (https://twitter.com/#!/VivekWickyAswal) - * @git htt://github.com/indieteq-vivek/simple-db-class - * @version 0.2a - * - */ +/** +* DB - A simple database class +* +* @author Author: Vivek Wicky Aswal. (https://twitter.com/#!/VivekWickyAswal) +* @git htt://github.com/indieteq-vivek/simple-db-class +* @version 0.2a +* +*/ require("Log.class.php"); class DB { @@ -28,7 +28,7 @@ # @array, The parameters of the SQL query private $parameters; - /** + /** * Default Constructor * * 1. Instantiate Log class. @@ -42,11 +42,11 @@ $this->parameters = array(); } - /** + /** * This method makes connection to the database. * - * 1. Reads the database settings from a ini file. - * 2. Puts the ini content into the settings array. + * 1. Reads the database settings from a ini file. + * 2. Puts the ini content into the settings array. * 3. Tries to connect to the database. * 4. If connection failed, exception is displayed and a log file gets created. */ @@ -75,7 +75,7 @@ die(); } } - /** + /** * Every method which needs to execute a SQL query uses this method. * * 1. If not connected, connect to the database. @@ -119,7 +119,7 @@ $this->parameters = array(); } - /** + /** * @void * * Add the parameter to the parameter array @@ -130,7 +130,7 @@ { $this->parameters[sizeof($this->parameters)] = ":" . $para . "\x7F" . $value; } - /** + /** * @void * * Add more parameters to the parameter array @@ -170,7 +170,7 @@ return NULL; } } - /** + /** * Returns an array which represents a column from the result set * * @param string $query @@ -191,7 +191,7 @@ return $column; } - /** + /** * Returns an array which represents a row from the result set * * @param string $query @@ -204,7 +204,7 @@ $this->Init($query,$params); return $this->sQuery->fetch($fetchmode); } - /** + /** * Returns the value of one single field/column * * @param string $query @@ -216,7 +216,7 @@ $this->Init($query,$params); return $this->sQuery->fetchColumn(); } - /** + /** * Writes the log and returns the exception * * @param string $message |