Gazelle/sections/friends/add.php

11 lines
201 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
authorize();
$FriendID = db_string($_GET['friendid']);
2013-04-19 08:00:55 +00:00
$DB->query("
INSERT IGNORE INTO friends
(UserID, FriendID)
VALUES ('$LoggedUser[ID]', '$FriendID')");
2011-03-28 14:21:28 +00:00
header('Location: friends.php');
2013-04-19 08:00:55 +00:00
?>