if(isset($_POST['price']))
{
$ret = array();
$price= $_POST['price'];
array_push($ret,$price);
$pr=count($ret);
for($i=0; $i>$pr;$i++)
{
$pri[]=$pr[$i]*$disount/100;
echo "<script>alert('$i'); </script>";
}
$nprice = implode("," , $pri);
}
else $nprice = '0';
when data is submitted it will get $_POST['price'] . In my code i m trying apply discount on $price.As i know discount is already set . but it is giving me error ! ) SCREAM: Error suppression ignored for Warning: implode() [function.implode]: Invalid arguments passed