PHP/MYSQL string clarification
<p>Night, I would like a clarification please. Can I use in select query with php variables to specify the names of the fields? For Example:</p>

<pre><code>&lt;?php
$fields= "firstname, lastname, address";
$query = "SELECT $fields FROM friends 
WHERE firstname='test'";
...
?&gt;
</code></pre>

<p>Thanks you in advance!</p>
