My settings table:
name | value --------+------ version | 1.5.6 title | test
How will I try it:
$getCfg = mysql_query("SELECT * FROM config"); $config = mysql_fetch_assoc($getCfg); echo $config['title'];
Equality:
Notice: Undefined index: title in C:\web\index.php on line 5
How to get the value in which the name is the title?
The above does not work. Well, if I add WHERE title = 'test', then echo $ config ['title']
source share