Eric’s Code

Building A PHP Database Connection Class From Scratch (using Singleton & ActiveRecord patterns)

Greetings folks. Tonight I’m studying on how to create a PHP Object-Oriented MySQL database connection class.  This will be reusable and able to be implemented in any database driven web application built with PHP & MySQL.  It uses the ActiveRecord and Singleton design patterns. I’m currently following this YouTube tutorial: Using OOP PHP to select, […]

Building A PHP Database Connection Class From Scratch (using Singleton & ActiveRecord patterns) Read More »

PHP View Utilities Code Debugger – A Wrapper For print_r function

Greetings folks. If you’ve ever gotten tired of having to type: [sourcecode language=”php” htmlscript=”true”] echo "<pre>"; print_r($some_var); echo "</pre>"; [/sourcecode] you are going to love the little debugger class I built. This is a very simple, basic class which doesn’t use patterns or anything fancy.  Actually, it may indeed use patterns that I’m not familiar

PHP View Utilities Code Debugger – A Wrapper For print_r function Read More »

Lynda.com PHP MySQL WAMP Project: Widget Corp – Progress Update – 2012.02.07

Hello folks.  I’ve been doing a Lynda.com tutorial called PHP With MySQL Essential Training.  I’ve actually been doing aboutg 2-8 hours per week of the multiple, sequential lessons that are involved in this excellent hands-on tutorial for about a month now. At this point, I have completed all the basic PHP and MySQL material, and

Lynda.com PHP MySQL WAMP Project: Widget Corp – Progress Update – 2012.02.07 Read More »