Gazelle/sections/friends/add.php
2013-04-19 08:00:55 +00:00

11 lines
201 B
PHP

<?
authorize();
$FriendID = db_string($_GET['friendid']);
$DB->query("
INSERT IGNORE INTO friends
(UserID, FriendID)
VALUES ('$LoggedUser[ID]', '$FriendID')");
header('Location: friends.php');
?>