28 lines
770 B
PHP
28 lines
770 B
PHP
aa
|
|
|
|
<?php
|
|
session_start();
|
|
|
|
$servername = "localhost";
|
|
$username = "database_access";
|
|
$password = "DataAccess1.";
|
|
$dbname = "avali_shop";
|
|
|
|
$conn = new mysqli($servername, $username, $password, $dbname);
|
|
|
|
if ($conn->connect_error) {
|
|
die("Connection failed: " . $conn->connect_error);
|
|
}
|
|
|
|
$sql_test = "SELECT * FROM wishlist_uuid WHERE uuid=\"" . $_POST["uuid"] . "\"";
|
|
$result_test = $conn->query($sql_test);
|
|
if ($result_test->num_rows > 0) {
|
|
$row = $result_test->fetch_assoc();
|
|
if ($row["uuid"] == (string)$_POST["uuid"]) {
|
|
$_SESSION["uuid"] = (string)$_POST["uuid"];
|
|
}
|
|
}
|
|
|
|
header("Location:javascript://history.go(-2);");
|
|
header("Location: https://mfgames.net/#acc");
|
|
?>
|