Return to Snippet

Revision: 14637
at June 8, 2009 10:27 by erichelgesen


Updated Code
$db = new Database($config['server'],$config['user'],$config['pass'],$config['database'],$config['tablePrefix']);
$db->connect();	
$sql ="SELECT * FROM XYZ WHERE ABC";
$all_ = $db->fetch_all_array($sql);
$db->close();

Revision: 14636
at June 8, 2009 10:01 by erichelgesen


Initial Code
require("db_class/config.inc.php");
$db = new Database($config['server'],$config['user'],$config['pass'],$config['database'],$config['tablePrefix']);
$db->connect();	
$sql ="SELECT * FROM XYZ WHERE ABC";
$all_ = $db->fetch_all_array($sql);
$db->close();

Initial URL

                                

Initial Description
Use to get all database results on a SQL query

Initial Title
Database All - using DB Class

Initial Tags
database

Initial Language
PHP