Sorry if I do something wrong it is my first time using stackflow and just beginning php and mysql.

The problem I am getting is that the table updates AFTER it echos. I would like to display the updated table.

```
while($row = mysql_fetch_array($result)) { 
  $bids = $row['bids']; 
  $bids +=1; 
  mysql_query("UPDATE items SET bids = " .$bids.", cost=" . $price. " WHERE items.name =". $item ); 

  echo "<tr>
          <td>".$row['name']."</td>
          <td align=\"right\">".$row['cost']."</td>
          <td align=\"right\">".$row['bids']."</td>
          <td align=\"right\">".$row['seller_name']."</td>
        </tr>";  
}//end while

```