Gazelle/sections/friends/add.php
2011-03-28 15:21:28 +01:00

6 lines
194 B
PHP

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