Bien au dessus de Léandre et JL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
445 B

<?php
session_start();
if (isset($_SESSION["username"]) AND isset($_SESSION['password']) AND isset($_SESSION['compte']) AND isset($_POST['compte'])) {
$_SESSION['compte'] = $_POST['compte'];
echo $_SESSION['compte'];
$bdd = new SQLite3('../users.db', SQLITE3_OPEN_READWRITE);
$append = $bdd->prepare("UPDATE users SET compte='".$_POST['compte']."' where username = '".$_SESSION['username']."'");
$append->execute();
}
?>