My config table:
name | value
--------+------
version | 1.5.6
title | test
How I try and get it:
$getCfg = mysql_query("SELECT * FROM config");
$config = mysql_fetch_assoc($getCfg);
echo $config['title'];
Equals to:
Notice: Undefined index: title in C:\web\index.php on line 5
How would I get the value where the name is title?
The above doesn't work..well if I add WHERE title = 'test' and then echo $config['title']