News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Social Network Style Posting with PHP, MongoDB and jQuery - part 2
November 19, 2013 @ 13:55:17

The SitePoint PHP blog has posted the second part of their series about the creation of a simple comment posting social site based on PHP, MongoDB and jQuery. In this second part they build on the structure from part one and add in posting and "liking".

In the previous part of the series, we explained the database architecture, post stream design and application flow required for developing our post mechanism wherein the user will be able to post a status, like/unlike other people's statuses and comment on them. This part of the series will drive you through the coding required to implement these functionalities. We will use the application flow and database structure as discussed in the last article. Don't forget to download the code from the github repo if you'd like to follow along.

First he shows you how to get new posts added to the database, POSTed to the backend PHP script. He also shows how to insert the contents back into the page and pull out the latest posts. Next up is the like/unlike-ing of the posts, handled by a simple submission to another backend script.

0 comments voice your opinion now!
tutorial mongodb social post jquery

Link: http://www.sitepoint.com/social-network-style-posting-php-mongodb-jquery-part-2/

blog comments powered by Disqus

Similar Posts

DevShed: Validating Web Forms with the Code Igniter PHP Framework

Emran Hasan' Blog: Changing the default controller naming convention in CodeIgniter

Andrea Giammarchi's Blog: PHP Serialization And Recursion Demystified

WebReference.com: The Building Blocks: Data Types, Literals, Variables, and Constants - Part 2

Adrian Schneider' Blog: Testing Zend_Mail


Community Events

Don't see your event here?
Let us know!


version podcast php7 security community release series api example opinion language unittest interview laravel5 video laravel introduction framework library voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework