hi everyone,
not sure how to go about this really so i thought i would ask for some help. Basically i have a includes file currently with a series of values that are used throughout my website. but for ease of management i want to place these into my mysql db.
so i want the following in mysql table
[code]
| name | value |
| gal | yes |
| jump | high |
[/code]
then i want to have a loop that will go through each of the rows in the table and extract the $name = value for example through my site i can call $gal and get the value yes.
am i making sence??? 😐
i tried something like this:
<?php
$name = "jump";
$value = "higher";
define('$'."$name", "$value");
echo $jump;
?>
but it didnt work.
Thanks
Chris