<?
session_start();
?>
<html lang="en">
<meta http-equiv="refresh" content="7; url = http://BackToMain.index...">
<title>Edit Self Save</title>
<?
$UserID = $_SESSION["ID"];
// ODBIERAMY ZMIENNE
$FullName = $_POST["FullName"];
$City = $_POST["City"];
$Username = $_POST["Username"];
$Password = $_POST["Password"];
$Email = $_POST["Email"];
$Phone = $_POST["Phone"];
$Website = $_POST["Website"];
// TEST
echo "<b>UserID:</b> $UserID, <b>FullName:</b> $FullName, <b>City:</b> $City, <b>Username:</b> $Username, <b>Password:</b> $Password, <b>Email:</b> $Email, <b>Phone:</b> $Phone, <b>Website:</b> $Website<br><br>";
// TWORZYMY NOWY REKORD Z WIADOMOSCIA
// DODAJEMY WIADOMOSC DO BAZY
// PODPINAMY SIE DO BAZY DANYCH
include("DatabaseConnect.php");
$data = [
'id' => $UserID,
'fullname' => $FullName,
'city' => $City,
'username' => $Username,
'password' => $Password,
'email' => $Email,
'phone' => $Phone,
'webiste' => $Website
];
$sql = "UPDATE Users SET FullName = :fullname, City = :city, Username = :username, Password = :password, Email = :email, Phone = :phone, Website = :website WHERE ID = :id";
$stmt= $pdo->prepare($sql);
$stmt->execute($data);
echo 'Dlaczego to sie nie updejtuje?';
?>
Moim zdaniem nie ma zadnego bledu, wiec czemu sie w ogole nie dopisuje?