if($total > 0) { unset($total); header("location: error.php"); } if($total==0) { $valor=34; unset($total); header("location: nuevo_valor.php"); }