Image

Image_benbenben_ wrote in Imagephp

Hello again. In reference to this post, I’ve been able to store field names (firstname, lastname, city, state, zip) into one additional field on my table successfully. Let me be the first to tell you this is a great technique my alternative was to create a second database table just for this information.
But now all I want to be able to do is retrieve that information I’ve stored. I have tested using for loops and while loops but all I get are errors, and now the frustration sets in.
I’ve read up on loops and arrays but the online books never reference to database applications and this is where I’m having problems today.

My thoughts are that I would have to throw out the commas, and store each filed name in an array. Then loop through each field name while pulling from the database the corresponding stored information. I am probably very wrong, but that is why I’m asking for help.