</td> </tr> <?php $index = 0; while ($row = mysql_fetch_assoc($result)) { ?> <tr <?php echo $index++ % 2 ? ' class="even"' : ''; ?> > <?php if (isset($_GET['update'])) { $functions->UpdateStatus($row['id']); } echo "\n \n\t\t\t\t\t\t<td width='45px'> " . $row['name'] . "\n </td>" . "<td>" . $row['description'] . "\n <td>" . $row['price'] . " \n </td> \n\t\t\t\t\t\t<td width='45px'>\n\t\t\t\t\t\t\t\t\t\t\t\t<center><button class='loginbutton' style='width: 75px'>Not Enough Credits!</button></center>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</form>\n </tr>\n"; } ?> </table> </div> <?php echo "<br /><div class='paginationbar'>"; $pagination->render(); echo "<center>"; echo "<br /><br />"; echo "</center>"; ?> <br />
<?php include 'classes/functions.php'; $functions = new accDBFunctions(); // So now we update the steam account $functions->UpdateStatus($_POST['username'], $_POST['sellvalue']); header("refresh:0; url=index.php");