I have decided to refactor my site so I could be the source of 000's of points over the next few weeks! In particular I am trying to make it more object orientated.
This first question is quite fundamental...it's important I understand this before continuing.
I have attached my classes file. My calling code is below.
$db = new Fobg_database( $host, $user, $password, $database );
$sql = "SELECT importance, item FROM headlines_new WHERE trim(item) <> '' ORDER BY importance";
$sql_query = $db->select($sql);
$counter = 0;
while ($row = $db->nextArray($sql_query)
) // Wrong class?!
My question is, what is the correct way of accessing and processing records...how do I access the nextArray function from the calling code?
Thanks for reading,