I have a site which settings are stored in a mysql database table. For getting one setting, I use something like this:
$q = mysql_query("SELECT setting FROM settings WHERE id=1");
$a = mysql_fetch_array($q);
$setting = $a['setting'];
But, isn't there a faster/better way to dump just one "cell" of a mysql table in a variable?