title: SUM of a column doesnt work it just print 0
body: <pre><code>&lt;?php
    $con=mysqli_connect("localhost","root","root","test");
    // Check connection
    if (mysqli_connect_errno())
    {
     echo "Failed to connect to MySQL: " . mysqli_connect_error();
    }
  
    $results = mysqli_query($con,"SELECT SUM(jumlah) AS jumlah_sum FROM finance_income"); 
    echo '&lt;center&gt;';
  
   /*while($rows = mysqli_fetch_array($results)); 
   { *?
       echo "&lt;p&gt;" . "Rp " . number_format($rows['jumlah_sum']) . "&lt;/p&gt;";
   /*}*/
   echo "&lt;/center&gt;";
  
   mysqli_close($con);
  
  ?&gt;
  </code></pre>
  
  <p>That was my code, i think it's working but when i open it in my mamp it just printed 0 not 2,800,000, 2,800,000 is the sum of colum "jumlah"</p>
  
  <blockquote>
    <p>id timestamp_<strong><em>_</em>__<em>_</em>__<em>_</em></strong>        nama cat_id jumlah</p>
    
    <p>1 2013-10-26 14:08:18 test Iuran
    400000</p>
    
    <p>2 2013-10-26 22:06:35 test Donasi
    2000000</p>
    
    <p>3 2013-10-27 10:51:32 test Iuran
    100000</p>
    
    <p>4 2013-10-27 10:55:01 test Iuran
    100000</p>
    
    <p>5 2013-10-27 11:01:38 test Iuran
    100000</p>
    
    <p>6 2013-10-27 11:02:07 test Iuran
    100000</p>
  </blockquote>
  
  <p>EDIT: I tried removing the while and it works thanks</p>