MyBB Community Forums

Full Version: add friends uid to other table
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I need add some data to friend table in database WHEN the users add someone in to his buddy lists(friend list) and also remove the data when he removed his friends .
and what data i want to add:

my table is:


CREATE TABLE IF NOT EXISTS `friends` (
  `friend` tinyint(1) NOT NULL,
  `friend_uid` int(10) NOT NULL,
  `is_external` tinyint(1) NOT NULL,
  `user_uid` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


In this sql :

friend -> always must be "1"
friend_uid -> friend uid
is_external -> always must be "1"
user_uid -> the user uid

Thank you

Guys pleas i can just post my problem here (In mybb forums)
pleas someone ask to my question. Mybb Staff?