Location: PHPKode > scripts > PHP Hosting Directory > phphost_directoryv2/include/admin.prices.php
<?

if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
  while (list($price_id, $price) = each($_POST['price']))
  {
    mysql_query("UPDATE `hsl_price` SET `price`='".$price."', `enabled`='".$_POST['show'][$price_id]."' WHERE `price_id`='".$price_id."'");
  }
}

$sql = "SELECT * FROM `hsl_price` ORDER BY `price_id`";
$res = mysql_query($sql);

$prices = array();
while ($row = mysql_fetch_assoc($res))
{
  $prices[$row['price_id']] = $row;
}
$t->assign('prices', $prices);

$t->assign('main_html', 'admin_'.$request[1].'.html');

?>
Return current item: PHP Hosting Directory