I'm resolved that I'm going to learn OOP. I've started documenting my "journey" at http://brucegust.com/campaign/OOP/
and you can check that out, just so you can see my thought processes so far, but here's what I want to do.
I want to take a project that I would normally code using a Procedural approach and do it using OOP. I'm having tough time finding the specific tutorials that would show me exactly what I need to do, though I know what needs to be done. Hence, here am I once again, a peasant among kings, asking for some direction.
I've got a table with data that's coming from a select statement that I'm looping through. Using a procedural approach, here's what I'm looking at:
$querystate = "SELECT * FROM registration order by registration_type";
or die("QueryState didn't quite make it!");
<?php echo stripslashes($querystate_r
Now, using an OOP approach, I'm thinking the syntax looks different in that I'm going to be referencing $querystate as sql in the context of function within a class. I'm going to instantiate an object that references that class and I'm going to be using the $this-> configuration to grab my "first_name."