I have a Form to submit that works successfully, except one part.
//Wallet check
if (empty($error) && $_POST['set_p_v'] == 0 && $wallet <1){
$error = "not enough money";
}
actually this code successfully displays the correct error message “not enough money” when 0 is entered in the Form field and the ‘wallet’ amount is 0, but upon testing, when the ‘wallet’ amount is greater than 0, and the Form field is 0, and I try to submit the Form, I still see that same error.
Ultimately, success would be if upon entering 0 in the Form field, with any amount in the ‘wallet’ equal to or greater than 1, the Form submits/proceeds/succeeds.
I don’t know if it’s imprtant to know that in the db Table field ‘wallet’, in phpmyadmin, the Type is Float.
I look forward to any suggestions/solution on this…
thanx