I have a table as follows:
id name value
-------------
1 name john
I would like to pull name as a variable name and john as the value eg:
$name = "john";
I have tried saving the name as $name
in the table but I can't use this to assign to the value.
I am thinking a foreach
but just do not know how to construct it.