$stmt2 = $conn->prepare("SELECT idCoureur
FROM dossard
WHERE numeroRFID= '12345678' ");
$valeurCoureur = $stmt2->execute();
// i already checked and my variable indeed found 5800 for $valeurCoureur
$stmt = $conn->prepare("UPDATE chrono
SET t_depart = 58
WHERE idCoureur= $valeurCoureur");
$stmt->execute();
numeroRFID is "the runner" of a race, t_depart is just the time he did from start to checkpoint1.
My probleme is, at this part:
$stmt = $conn->prepare("UPDATE chrono SET t_depart = 58 WHERE idCoureur= $valeurCoureur");
when write 5800 instead of $valeurCoureur it works, the value in my database change but when i write WHERE idCoureur= $valeurCoureurthe table doesn't change the value. so i checked the value of $valeurCoureur is 5800 so it should change in the database but it doesn't ...
i hope it was clear enough