connect_error) {
die("Connection failed: " . $conn->connect_error);
}
/*
$sql = "INSERT INTO meme (session, status)
VALUES ('". $sesid ."', '0')";
if ($conn->query($sql) === TRUE) {
// echo "New record created successfully";
}
else {
// echo "Error: " . $sql . "
" . $conn->error;
}
$conn->close();
*/
}
else {
// echo "Cookie '" . $cookie_name . "' is set!
";
// echo "Value is: " . $_COOKIE[$cookie_name];
$sesid = $_COOKIE[$cookie_name];
}
?>