Database All - using DB Class


/ Published in: PHP
Save to your folder(s)

Use to get all database results on a SQL query


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.