PHP + MySQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux