remove last character
<p>i noticed that there are a lot of topics like this in stackoverflow, but the ones that i read are with just 1 variable, and i have two and i'm a little confuse.</p>

<p>so this is my code,</p>

<pre><code>$query = mysql_query("SELECT Provider.provider_id, provider.company_name FROM Provider");

while($row = mysql_fetch_array($query)){
    echo "'".$row['provider_id']."':'".$row['company_name']."',";

}
</code></pre>

<p>I am using this to generate javascript code for Jeditable.</p>

<p>I need to take out the last comma, so I can wrap up with the rest of the code...</p>
