For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > July 2007 > PHP + MySQL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP + MySQL
Dan Maret

2007-07-18, 6:58 pm

I just can't figure it out and Google yielded no help. I have a table named
'settings' which contains two fields, 'item' and 'content'. What I would
like to do is grab that data and use the 'item' field as the name, and use
the respective 'content' as the value in an array. For Example:

Array (
copyright => Copyright 2007 yada yada
version = > 2.15.1
)

That way I can do <?= $settings['version'] ?>

Can you help point me in the right direction? Any help would be greatly
appreciated!! :-D

--
-Dan

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com