prepare('UPDATE Demonstration SET numDemo=? WHERE numDemo=? AND chapitre=?'); $sqliteQuery->bindParam(1, $test); $sqliteQuery->bindParam(2, $numDemo); $sqliteQuery->bindParam(3, $numChapitre); $result = $sqliteQuery->execute(); $sqliteQuery = $db->prepare('UPDATE Demonstration SET numDemo=? WHERE numDemo=? AND chapitre=?'); $sqliteQuery->bindParam(1, $numDemo); $sqliteQuery->bindParam(2, $numDemoPrec); $sqliteQuery->bindParam(3, $numChapitre); $resulti = $sqliteQuery->execute(); $sqliteQuery = $db->prepare('UPDATE Demonstration SET numDemo=? WHERE numDemo=? AND chapitre=?'); $sqliteQuery->bindParam(1, $numDemoPrec); $sqliteQuery->bindParam(2, $test); $sqliteQuery->bindParam(3, $numChapitre); $resultp = $sqliteQuery->execute(); } //header("Location: index.php");