title: Displaying the mysql result in different format using php
body: <p>I am getting price values from mysql database table  with the given php code</p>
  
  <pre><code>$sql="SELECT DISTINCT (price) FROM  'table' order by price asc";
  $res=mysql_query($sql);
  while($row=mysql_fetch_array($res))
  {
      $price=number_format($row[price]);
  }
  $price=implode(',',$price);
  </code></pre>
  
  <p>The result is <code>2,299,4,600,5,800,8,000,12,700,16,900,23,978,27,098</code></p>
  
  <p>but i want to display the result as 
   <code>$2,500 or less,$5,000 or less,$7,500 or less,$10,000 or less,$15,00 or less,$20,000 or less,$25,000 or less,$30,000 or less</code> </p>
  
  <p>Can anyone tell me how o fix this problem</p>