34
36
include 'showlunchsuggestions.php';
42
46
if (isset($_POST['Subscribe'])) {
43
47
$relationinfo = $db->query("SELECT * from dateInterests WHERE(user1='$username' AND user2='$profilename')");
44
48
$relationquery = $relationinfo->fetchAll();
45
49
if($relationquery == array()) {
46
50
$db->exec("INSERT INTO dateInterests VALUES ('$username', '$profilename')");
49
53
header("Location:./profile.php?uid=" . $profilename);