/ Published in: PHP
Use to get all database results on a SQL query
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$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();