I'm working on a class to access a MySQL database. One function I'd like to have is one that lists the records in a table. But, I'd like to be able to read from a loop.
Ex:
while ($x = $class->function())
{
echo $x['fieldname'];
}
How would I go about doing this?
Thanks...