I'm checking my data before creating the consult.
Lines are like:
$valpar_sup_reg = isset($_POST["valpar_sup_reg"]) ? mysql_real_escape_string($_POST['valpar_sup_reg']) : 0;
I just want to control in case that there aren't data on my var's to set a 0 to all of them.
But then the consult $valpar_sup_reg
gives me ''
instead of 0
Okay, i've change to mysqli statements
$valpar_sup_reg = !empty($_POST["valpar_sup_reg"]) ? mysqli_real_escape_string($conn2,$_POST["valpar_sup_reg"]) : 0;
Thanks for all and the negatives :)