Please how can i create friends function using php | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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

1st Mar 2017, 3:17 PM
Oyeniyi Abiola Peace
Oyeniyi Abiola Peace - avatar
8 Respostas
+ 5
By making a database table friendRequests
1st Mar 2017, 4:34 PM
Patrik Sokol
Patrik Sokol - avatar
+ 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.
1st Mar 2017, 5:18 PM
Patrik Sokol
Patrik Sokol - avatar
+ 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?
1st Mar 2017, 6:07 PM
Patrik Sokol
Patrik Sokol - avatar
+ 3
By creating new row where an 'applicant_id' is associative identifier of request sender and 'requested' is new friend's identifier.
1st Mar 2017, 5:00 PM
Patrik Sokol
Patrik Sokol - avatar
+ 2
Then how user be able to send request to each other.
1st Mar 2017, 4:54 PM
Oyeniyi Abiola Peace
Oyeniyi Abiola Peace - avatar
+ 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
1st Mar 2017, 5:51 PM
Oyeniyi Abiola Peace
Oyeniyi Abiola Peace - avatar
+ 1
That sounds like the biggest grammar I have ever heard. pls help me with a link to a ready made code
1st Mar 2017, 5:07 PM
Oyeniyi Abiola Peace
Oyeniyi Abiola Peace - avatar
+ 1
go back to w3schools where I was a drop out and start learning
1st Mar 2017, 6:52 PM
Oyeniyi Abiola Peace
Oyeniyi Abiola Peace - avatar