require_once("../conn.php");
require_once("access.php");
require_once("AdminNavigation.php");
$MyPrice = trim($_POST[nprice]);
if(!empty($MyPrice))
{
$q1 = "insert into domain_prices set PriceValue = '$MyPrice' ";
mysql_query($q1);
if(mysql_error())
{
echo "
The price value $MyPrice is already in use!
";
}
}
?>
$q1 = "select * from domain_prices order by PriceValue ";
$r1 = mysql_query($q1) or die(mysql_error());
if(mysql_num_rows($r1) > '0')
{
echo "\n";
echo "\n\t| Price Value | \n\tAction | \n
\n";
$col = "white";
while($a1 = mysql_fetch_array($r1))
{
if($col == "white")
{
$col = "dddddd";
}
else
{
$col = "white";
}
$fPrice = number_format($a1[PriceValue], 2, ".", ",");
echo "\n\t| $fPrice | \n\tedit | delete | \n
\n\n";
}
echo "
";
}
?>