Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

HostBill use PDO to perform database operations. Even if it allows for awesome programming techniques its still not that popular method of database operations in PHP. If you find using standard PHP mysql functions more easy to use, you can now use them in HostBill modules you're working on!

(If PDO is not available on server, HostBill will use a class that share same methods as PDO.) 

  1. Add this code at the top of your custom module:

    Code Block
    languagetext
     NativeMySQL::connect();
  2. Thats it, you can use standard mysql functions now!

...