Posted By

erichelgesen on 06/08/09


Tagged

database


Versions (?)

Database All - using DB Class


 / Published in: PHP
 

Use to get all database results on a SQL query

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

Report this snippet  

You need to login to post a comment.