<table class="table table-striped">
                    <thead class="text-center">
                       <th>         </th>
                        <th><?= $lang['common']['username'] ?></th>
                        <th>Quantiy and metal</th>
						<th>Price</th>
                        <th>Order</th>
                    </thead>
                    <?PHP
                    $db->Query("SELECT * FROM db_selling ORDER BY id ASC LIMIT 20");
                    if($db->NumRows() > 0){
                        while($bon = $db->FetchArray()){
                            ?>
                            <tr class="text-center">
                                <td><img src="<?php echo("/images/avatars/".$bon["avatar"]) ;?>" width="40"></td>
                                <td><i class="fa fa-user"></i> <?php echo $bon["seller"]; ?></td>
                                <td> <?php echo $bon["quantity"]; ?> <?php if ($bon["metal"]=='gold') echo ('<span class="ic-gold2"></span>'); else echo ('<span class="ic-gold1"></span>' ); ?></td>
                                <td><?php echo $bon["price"]; ?></td>
								<td><button type="submit" name="buy"  id="buy_coins" class="btn btn-small mt5">BUY</button></td>
                            </tr>
                            <?PHP
                        }
                    }else echo '<tr><td class="text-center" colspan="4">'. $lang['bonus_daily']['no_rec'] .'</td></tr>';
                ?>
                </table>
                           