+ 2
Please how can i create friends function using php
how can I create a site that will be able to send and accept friends request like Facebook any idea will be useful
8 Respostas
+ 5
By making a database table friendRequests
+ 4
create table if not exists `friendRequests`
(
`id` int not null auto_increment,
` asked` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`asking` varchar(70) not null,
`requested` varchar(70) not null,
primary key(id)
);
PHP code depends on the paradigm you use. You need to edit this SQL in according to your needs.
+ 4
You know Oyeniyi, if you are a newbie, you just need to get some knowledge. This is nothing you can just pass trough and hope you will somehow develop a social site. Bullshit, mate ;-) I would send you a code for retrieving data to an array, but what you gonna do after that?
+ 3
By creating new row where an 'applicant_id' is associative identifier of request sender and 'requested' is new friend's identifier.
+ 2
Then how user be able to send request to
each other.
+ 2
I love this sololearn!!!!!! please after creating the table what php code will I use just give the idea. am a newbie to php. sorry for giving you work
+ 1
That sounds like the biggest grammar I have ever heard. pls help me with a link to a ready made code
+ 1
go back to w3schools where I was a drop out and start learning