I'm trying to get a specific value from a mysql_fletch_assoc array. I explain. Here is the database. Table: config with 2 fields: setting and value.
SETTING | VALUE
width | 100
height | 50
And this is the query:
$result = (mysql_query("SELECT setting, value FROM config"));
while($setting = mysql_Fetch_assoc($result)){
echo $setting['value'];
echo "<br>";
Now i can see the entire array. I want to display every element individually. I tryed with $setting['value']['0'], $setting['value']['width'] with no success.
Edit: basically i want to do something like this:
echo $setting['value']['width'] gives -> 100
echo $setting['value']['height'] gives -> 50
I hope that now it's more clear