Lesson Code: http://www.developphp.com/video/PHP/Friend-Add-Block-System-Ajax-Tutorial Learn web development logic behind creating Friend systems and …
source
Lesson Code: http://www.developphp.com/video/PHP/Friend-Add-Block-System-Ajax-Tutorial Learn web development logic behind creating Friend systems and …
source
36 responses to “10. Friend and Block System PHP MySQL Ajax Tutorial Social Network Website Development”
Anyone has this entire code? Please provide me the while folder, i really need it very badly right now. I will appreciate the one who would provide me the entire code. Thanks !
i tried to code the index.php missing code, may be it will help a little bit, you can improve and send back us
for index.php————————————————————————————
<?php // Script Error Reporting
error_reporting(E_ALL);
ini_set('display_errors', '1');
?>
<?php
// Connect to the MySQL database
//include "storescripts/connect_to_mysql.php";
include_once("php_includes/db_conx.php");
$dynamicList = "";
$sql ="SELECT * FROM users ORDER BY lastlogin DESC LIMIT 20 ";
$query = mysqli_query($db_conx, $sql);
$productCount = mysqli_num_rows($query);
if ($productCount > 0) {
while($row = mysqli_fetch_array($query)){
$id = $row["id"];
$username = $row["username"];
$gender = $row["gender"];
$last_login = strftime("%b %d, %Y", strtotime($row["lastlogin"]));
$dynamicList .= '
<p>
User: <a href="user.php?u=' . $username . '" > ' . $username . ' </a> <br/>
Gender: ' . $gender . ' <br/>
Last Login: ' . $last_login . ' <br/>
</p> ';
}
} else {
$dynamicList = "NO user has been signed up yet";
}
mysqli_close($db_conx);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Web Intersect Social Network Tutorials and Demo</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" >
<link rel="stylesheet" href="style/style.css" >
</head>
<body>
<?php include_once("template_pageTop.php"); ?>
<?php include_once("template_pageMiddle.php"); ?>
<?php include_once("template_pageBottom.php"); ?>
</body>
</html>
—————————————————————————————————————————–
for template_pageMiddle.php
<div id="pageMiddle"> <br/><br/><br/><br/>
<div> <strong>Temporary users testing the live tutorial system !</strong></div>
<table width="100%" border="1">
<tr>
<td>
<p> <?php echo $dynamicList; ?> </p>
</td>
</tr>
</table>
</div>
—————————————————————————————————————————–
Dear Adam!
I am facing issue with Block Friend – Watched your video 15 times still facing "Please wait …" issue.
Everything including php_parsers (friend_system and block also) and user.php is updated. If any genius knows solution Please help me in resolving this issue. Thank You!
BEST INTRO EVER. ya i think you are a damn good teacher and coder. waiting to see what else you make in 2016
Adam, tnx for the trorials, but in the friend php in order to send a request one have to go to the user page, can you make turorial on how to send a request with out going to the user page. a list of users and an add friend button next to them.
Adam, thank you for your tutorials, they are by far the best I have found.
I recently tried to fix the bug where changing the case of a letter in your username allows you to friend or block yourself. I was able to fix this issue by making the mysql database entry "username" case sensitive (latin1_general_cs). I am proud of myself for this fix, since I started learning php about two weeks ago. I am curious if anyone foresees any problems I might have because of this change. Thank you.
Amigo essa aplicação PHP pode ser aplicada no windows Forms Application
também?
how can i send friend request and watch the friend list?
I think it should be user id in the querystring, duplicate names??
Hey good job Adam on the videos. you are an amazing programer. I have one little problem I did everything you did but i keep on getting a "try again later" on the request.
I dont find the insert data into notifications fields, can someone helpme please?
Im having some problems. When i send friend request, block or unfriend a user the action happen but i always get back the php echo and the "Try again later" status msg. When the echo from php is "friend_request_sent" the status msg should be 'OK Friend Request Sent'. But it isnt working and i don`t know how to fix it, can someone help me?
Where to find check_login_status.php?????
watching… following the whole series…. and CRACKING UP lmao. U are funny as hell!!! Most who watch, as i see in the comments… watch one clip, and have NO understanding of whats going on. I stumbled big time on vid 6… but plugged away till i found my issue (database permissions… wrote it myself without paying attn…)
love the way you descrie things. Cudo's, man.
Why do I not see the temporary users in my index file?
How do you put the Temporary Users files in your Index page in order to send them a friend invitation?
Awesome tutorials man.
Scripts work perfect! Things starting to get harder from here… thanks again Adam!
Another great video tutorial Adam, thanks!
Something I noticed when I was testing adding friends; if you type your user name in the address bar differently than it is in the database (ie, when you create your user name as "Adam" and type in "adam") the programming thinks it's a different user and WILL let you add yourself as a friend. Not sure if anyone else noticed this, but I'm going to do some work to figure out how to make that not happen. If you have any pointers, I'm sure we'd all appreciate them.
Thanks again! Keep up the good work.
interesting tuts Adam .nice job 🙂
thank you so much man, you're amazing 🙂
Dude, what you're doing flows far above amazing, and I'm sure all your subscribers realizes the painstaking length you go through to share your wisdom. So please, don't get too discourage Those fools you lose from the repetition you endure from lesson to lesson are the same fools who are afraid of achieving their own greatness. Keep up the stellar work. We love you, man. You are the best. The one stop shop of coding.
Adam your the fuckin man!
Where's the main.js?
I don't know about the annoying part but, I do know you are supplying quality info. Long live the annoyance. Looked through the mega list of tutorials you have created and am just simply amazed. Is there any tutorial in there about restricting data by user? User1 logins and only reference User1 data, User2 only User2?
Again Thank you
it days try again, but in my database it's added
Just say try again later
Yes see my response above
Yes see my response above
Yes see my response above
Yes I had the same issue. In the root folder, where your index.php, user.php, forgotpass.php lives, create a new subfolder called php_parsers and put the block_system.php and friend_system.php files in there. There is no issue with his code, just put those two files in there. At 12:54 notice his address bar at the top, and you can see the file directories there.
did you burp at 19:08 ? 😀
Has anybody else come across the "please wait…" issue to do with the Ajax portion of the code? because I'm looking for answers and any help will be appreciated. thx
Hey, BruNti Oke! Any progress on the "Please wait…" issue because I have the same the problem. If so, what was the cause? thx
Ok hi there all
I am trying to create an edit page using his coding and can't get anywhere. it keeps on pushing me back to the home page.
I am quite impressed with his teaching. Wish I was this patient.
when Ever Someone signup up at my account he cannot login after confirmation of his account.in the database there is a defaul password in md5format.
can u help me please?