Create comma separate list for JavaScript from my Query
<p>Is there a quick easy way to write the results from the query below to just a comma separate list so between the open/close <strong>javascript</strong> tags that will appear:</p>

<p>72,Client contact name, 2860 eof
72,Contact Phone, 2888 eol
72,Email address, 2865 eol and so on?</p>

<pre><code>&lt;?php
    $data = array();
    $results = mysql_query('select account_id, display_name, id from field');
    while($result = mysql_fetch_assoc($results)) {
        $data[] = $result;
    }
?&gt;
&lt;script language="javascript"&gt;
    ???????
&lt;/script&gt;
</code></pre>
