Hi Sirs, I wrote these simples codes to update to one and same table. Curiosly, it's update ONLY with the second module. I do check it hours and hours to understand why? I dont see the problem. Anyone can help please.
/*----Module1----*/
if(isset($_POST['prop1_btn'])) {
include('testDB.php');
$question=$_POST["question"];
$answer=$_POST["answer"];
mysqli_query($conn,"update `champion` set answer='$answer' where question='1.1'");
}
/*----Module2----*/
if(isset($_POST['prop1_btn'])) {
include('testDB.php');
$question=$_POST["question"];
$annexe3=$_POST["annexe3"];
mysqli_query($conn,"update `champion` set annexe3='off' where question='1.1'");
}
?>
IsraelPosted Dec 31, 2022, 12:59 PM
Sirs,
I would like to know if there is another way to force the updating process?
Curiosly, when I put value into my codes. Its works. Doesnt when I put value into my input at runtime.
Thanx.