Skip to main content

PHP Tutorial

Creating a Registration Page Part I

In this tutorial, I will show you how create our Registration Page using Bootstrap framework. The Registration form together with the Login form will welcome you when you access the site. And it will require the new member to register on the site, so that they can login and to have access to the site. First, create a PHP file named “index.php”, save it inside “philsocial” folder. And this PHP file

Social Networking Site: Login Page

This tutorial is a continuation of our project called “How to Create a Social Networking Site Tutorial”. At this time we’re going to focus on creating login-logout system in a secure way using session. Logging in or signing in or on is the process by which individual access to a computer system is controlled by identifying and authenticating the user through the credentials presented by the user

Inserting Data using PHP into MySQL Database

In this course we will focus on how to INSERT data using PHP into MySQL Database. When inserting data into Mysql Database tables we need to remember the names and types of table columns. For example if you set your field as the name of the person so as expected you must insert string value or if you are referring into the age of a person meaning you need to enter a numeric value. Below are the

Uploading files using PHP

In this tutorial, I’m going to show you how upload files from a client web broswser to a web server. To do this we need to configure first our PHP for file uploads. Open php.ini then make sure to set the following: • file_uploads – must be set to (“on” or set to “true” or “1”) so that the php will accept file upload • upload_tm_dir – is where we’re going to upload file temporarily, and it uses

Social Networking Site Project Setup

In this tutorial, I will show you how to set up our project before we start developing a several web pages. First lets create a folder name “philsocial” inside our web server. Since we will be using a Twitter Bootstrap framework, and if you don’t have a copy of this, you can download it here. After downloading, you need to extract it and copy the following folder such as assets, css, fonts and js

Social Networking Site: Simple Uploading of Profile Picture in the Home Page

In this tutorial, I’m going to show you how to upload profile picture in the home area, and this profile picture will still be available even your navigating in different pages. To start with this application, open our project in local server and look for the “home.php” and open it. This home page will you show when you successfully logged in. And most of the common functionality and interfacing

Validating and Saving a New Member (Advance PHP)

In this tutorial, will be focusing on using advance PHP through Object-Oriented Programming approach. Using OOP approach it provides a clear modular structure for programs which it good for defining abstract data types and it makes easy to modify existing code as new objects can be created with small differences to existing ones. This time let’s create a new PHP file named “member.php” and save it

Facebook Wall Script Clone (What’s On Your Mind)

In this tutorial I’m going to show you how to add a Facebook-like Activity Stream or commonly known as “What’s on your mind?”. This will application will allow the user to enter their thoughts or and post it into the site wall. To start in this tutorial, we’re going to set up first our database table. And this table name comment, and here’s the table structure. CREATE TABLE IF NOT EXISTS `comments

Uploading of Photos using Advance PHP

In this tutorial I’m going to show you how to upload photo using PHP/MySQL, and this tutorial is a continuation of our previous topic called Social Networking Site: Simple Uploading of Profile picture in the home page. But in this time we’re not going to use the “home.php” file instead, we’re going to create a new page named “upload_photos.php”. To start in this lesson, first we will create a new

Validating and Saving a New Member

In this tutorial, I'm going to show how to validate the user inputs using Javascript and saving the data into MySQL Database using simple PHP. To start in tutorial, first open our last topic called Creating a Registration Page Part I and I made some changes and here’s the modified index file: Philsocial Philsocial Sign in Philsocial helps you connected and share with the other people in your life