...
(If PDO is not available on server, HostBill will use a class that share same methods as PDO.)
Add this code at the top of your custom module:
Code Block language text NativeMySQL::connect();
- Thats it, you can use standard mysql functions now!
Examples
...
PDO-approach:
Code Block | ||
---|---|---|
| ||
$q=$this->db->query("SELECT * FROM hb_client_details"); while($row = $q->fetch(PDO::FETCH_ASSOC) { print_r($row); } |
...