Gazelle/sections/friends/add.php

6 lines
194 B
PHP
Raw Normal View History

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