Variables in an array
<p>I'm trying to put a mysql query into a function, however when I do a mysql_fetch_array I need to specify the row's name. How can I put a variable in a function?</p>

<pre><code>function config($setting_name,){
    while($config_db = mysql_fetch_array(mysql_query("SELECT {$setting_name} FROM config WHERE id='1'") {
        echo $config_db['@@@@HERE@@@@'];
    }
}
</code></pre>
