Login   Register  
PHP Classes
elePHPant
Icontem

File: db.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Muhammad Sameer  >  Database Abstraction plus SQL Injection  >  db.php  
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
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: 8 years ago
Size: 5,161 bytes

You need to be a registered user and login to get this file.

1,302,467 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

Facebook ConnectGmail or other Google AccountHotmail or Microsoft Windows LiveStackOverflowGitHubYahoo