Our code
is your code — take a look inside our bag of tricks.

We aim to create clean, modular, reusable code. Below are a few of the pieces that you may find useful in your own applications. If you have any comments, suggestions or questions concerning our code, please send us an email.

PHP :: db_handler
The DB Handler has been one of the most useful classes we've created. The functions to create a db connection, run a SQL query and process the results are all included in PHP's libraries, but it gets to be cumbersome if you have to use them all every time you want to run a query. We created a class that helps simplify all of that. You simply set a few configuration variables once, instantiate the class, and then run the query. The handler takes care of all the connection functions and the processing of the returned data (if there was any). It also stores any returned errors in a predefined variables.

Current Version: 1.1
Download: db_handler-1.1.tar.gz

Stay tuned... more code to come soon!

Contact Us
We're looking forward to hearing from you!

By Phone: 866.588.1884

By Email: info@lightcubesolutions.com