Build a Social Network from Scratch: JavaScript PHP + MySQL

4.5 (2261)
Learning paid
16.5 hours course
Course by Udemy
What will you learn?
Create a full scale social networking website like Facebook or Twitter, including features such as newsfeeds, profiles, friend system, chat system, trending posts and much more!
Program proficiently in PHP, HTML and CSS
Program using an OO (Object Oriented) approach
Know how to easily use MySQL databases with your website
Understand how to register domain names and put your new site on the web!
About the course

Join over 5,000 students and be a part of this Udemy rated BEST SELLING course!

Do you want to become an expert in JavaScript, PHP and MySQL?

Do you want to build a social network just like Facebook?

If so, you’re in the right place! This course will guide you step by step in creating your own social network COMPLETELY from scratch.

We’re talking the kind of website that will amaze anybody that sees it. The kind of website that will get you hired in no time!

Why let me teach you?

I work as a Software Engineer at Microsoft where I build products used by millions of people all over the world! I want to take the skills I’ve gained through years of working with some of the best developers in the world and transfer them directly to you!

I’ve taught thousands of students here on Udemy and created some of the most popular development courses on Udemy!

Okay so what’s the course about?

I will personally guide you, step by step, in creating your own social network site just like Facebook complete with:

  • Status posts
  • Newsfeeds
  • User profiles
  • Chat/messaging systems
  • Friend systems
  • And much more

Whether you are a complete beginner* or an experienced programmer, this course will be massively beneficial to you.

Why should I take the course?

In the programming world, the “big 4” often consists of Google, Microsoft, Facebook and Amazon. To get a job at any of these companies, you absolutely MUST know the essentials: HTML, CSS, PHP, JQuery, JavaScript and MySQL.

If you take this course, you will have nothing to worry about because we use all of these skills extensively!


By enrolling in this course, you will have the COMPLETE support of a Microsoft Software Engineer (me). I'm always ready to answer any question you may have. Programming issues, errors, feature requests, general programming advice - it doesn't matter, I'm always happy to help! I always aim to respond to questions within a few hours and it's also worth noting that I've answered EVERY SINGLE question asked so far.

Future course discounts:

By enrolling in this course, you will get access to ALL of my current and future courses for the lowest possible discount we as instructors are capable of offering on Udemy - FOREVER

Project portfolio:

The site you create in this course will be the highlight of your project portfolio! Any potential employer who see's this project on your resume will want to hear all about it. The reason? They know that a project like this means you're familiar with the wide range of technical skills they need their employees to know.  


Finally, this project is a lot of fun and I know you'll have a great time implementing your own unique ideas as well as the ones we implement together. What are you waiting for? 

Welcome! Info and Setup
Intro (same as course landing page video)

Take a quick look at the sort of thing you will be producing! Your site will have all of the main features you will find on top social media websites such as Facebook or Twitter!

Note: This is just an example. You will be able to customise your site however you like! Colours, pictures, whatever! Be creative!

Installing Xampp
Creating the index page
Creating our database
Connecting to our database with PHP
Register / Sign Up Form
Creating the registration form allowing users to sign up for an account
Let's create the register form!
In this video we create our register page and add the necessary input fields!Source code is available as a .zip in lecture 17!
Getting values from the form
Now we get the variables sent from the form and store them in variablesSource code is available as a .zip in lecture 17!
Checking that the Emails Match
In this video we are going to validate the email by making sure that the two emails entered match and that they are in the correct format for an email. Source code is available as a .zip in lecture 17!
Creating the Users Table
So it's finally time for us to create our first actual database table! We are going to create the users table which will hold all the details of users that have signed up to our website.  Source code is available as a .zip in lecture 17!

Checking that the Email Hasn't Already Been Used
Before we let the user sign up, we need to make sure that the email address they are trying to use hasn't already been used by another user.  Source code is available as a .zip in lecture 17!
  • A computer (I am using a Mac)
  • A text editor to program in (I use Sublime Text 2)
Reece Kenney
Reece Kenney
Software Engineer at Microsoft
Udemy courses are suited to professional development. The platform is organized in such a way that it is experts themselves that decide the topic and when the course will start. All supporting documents are made available to you for lifetime access. On this platform, you can find a course on about any subject, and that is no exaggeration – from a tutorial on how to ride a motorcycle, to managing the financial markets. The language and the course format are established by the teacher. This is why it is important to read the information about the course carefully before parting with any money.
Comments (2261)
Like any other website, konevy uses «cookies». These cookies are used to store information including visitor's preferences, and the pages on the website that the visitor accessed or visited. The information is used to optimize the users' experience by customizing our web page content based on visitors' browser type and/or other information. For more general information on cookies, please read the «What Are Cookies» article on Cookie Consent website.