PHP + MySQL
| From: | Dan Maret | Date: | Wed, 18 Jul 2007 20:18:09 +0000 |
| Subject: | PHP + MySQL | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-43800@lists.php.net to get a copy of this message | ||
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