PHP Classes
elePHPant
Icontem

File: dbase.class.php

Recommend this page to a friend!
  Classes of Matthew Boyle  >  Simple MySQL handler  >  dbase.class.php  
File: dbase.class.php
Role: Class source
Content type: text/plain
Description: Source
Class: Simple MySQL handler
Execute SQL queries with MySQLi or MySQL extension
Author: By
Last change: Added the option of building queries by using placeholders and an array of substitute values:
$db->execute('SELECT * FROM table_1 WHERE user= ? AND active= ?',['thomas',1])
would be equivalent to
$db->execute("SELECT * FROM table_1 WHERE user= 'thomas' AND active = 1")
values in the array go through the prep method so quotation and escaping are automated.
Date: 1 month ago
Size: 19,441 bytes

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

1,493,236 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmailHotmailStackOverflowGitHubYahoo