Why isn't this simple function working?
<p>I didn't want to keep repeating the same select query, so I wrote this function. But it doesn't work:</p>

<pre><code>function select($what, $table) {
    $query = mysql_query("SELECT $what FROM $table");
}
select(*, products);
</code></pre>
