File: |
db.php |
Role: |
Class source |
Content type: |
text/plain |
Description: |
Class File |
Class: |
Database Abstraction plus SQL Injection
MySQL access wrapper with SQL injection protection |
Author: |
By Muhammad Sameer |
Last change: |
previously its using mysql_fetch_assoc Now its changed to mysql_fetch_array , mysql_free_result() was added
And One other Change i stablish connection to the db before i use the mysql_real_escape_string to avoid problem in different php Versions. Otherwise use of this function will return empty string if you dont have db Connection established
$this->_objDatabaseClass=new DatabaseClass();
$this->_objDatabaseClass->dbOpen();
|
Date: |
18 years ago |
Size: |
5,161 bytes |
|
|
|