I have a table called people with the columns id (PK), fname, and lname.
It's simple enough to setup a loop out of the data:
$rs = mysql_query("SELECT * FROM people");
while($row=mysql_fetch_array($rs)){
...do stuff...
}
However, what I'm looking to do is loop the column/value pairs into an array automatically.
So, if I added a new column for email I can call the central function and just pull from $results['email'] while looping through the array.