Skip to main content

PHP Tutorial

Social Networking Site: Reusing of Codes using PHP Include

In this tutorial I'm going to show you how to reuse of codes using PHP includes, this including of files saves a lot of work. Since we are using a standard Header and Footer this is the best time to apply this concept. So that later on, if you need to update the header you can simply update the header include file not all the pages that has same header. To start with tutorial, open first our

Social Networking Site: Loading the User Basic Information

This tutorial, is a continuation of our previous topic called “Social Networking Site saving basic Information”. But this time we’re going to focus on how to load all the save information from the database. And it looks like as shown below: To start with this tutorial, open our project folder and select the file called “info.php”. Then under end portion of the Modal, add the following code: This

How to create a Simple Registration Form Using Modal

In this tutorial I'm going to show you how to create a simple registration form using Modal. Instead of creating new web page for a registration form, we will use modal so that we could save memory and space in our web directory. To start with application we need to download first a twitter bootstrap framework for this we’ll be using it for this application. After downloading, extract it and copy

Social Networking Site: Saving Basic Information

In this tutorial, I’m going to show you how the form for basic information about a user and saving the basic information of a user using twitter bootstrap modal. And to start with this application, open the project folder name “physical” inside the document root. Then open the info.php and under the well class, add the following code: Basic Information The code above when it has executed in the

Applying Object-Oriented Programming in PHP Pagination

This tutorial is a continuation of our previous tutorial called “PHP Pagination”. At this time we’re going to focus on how to perform Pagination using Object-oriented Programming in PHP. Using this OOP we can minimize our code in creating a PHP pagination in our all web pages especially when we are developing a big system. To start with this application, open our file in the document root called

Social Networking Site: Adding a Delete control for Comment and Sub comment

This tutorial, is a continuation of our previous topic called Social Networking Site: Adding a Sub-comment to a specific Post. But this time, I’m going to show you how to add a delete command of comment and sub comment. To start with this course, open our philsocial folder from the document root and open the home.php file. And inside the well class above all of the codes for comment and sub

PHP Pagination

In this tutorial I’m going to show you how to create a pagination. The concept behind pagination, let’s say we have one million records in our database and we probably we don’t want to see that entire record in the our web browser at once. Instead we’re going to return a subset of results and the first page may consist 20 records on it. And then we have another link to our next page that has other

Social Networking Site: Adding a Sub-comment to a Specific Post

This tutorial is a continuation of our previous topic called “Facebook Wall Script Clone(What’s On Your Mind)”. But this time, we’re going to focus on how to add a sub comment in every shared post of a user. To start with this tutorial, create first a table in your database called “subcomment” and here’s the table structure of this table. CREATE TABLE IF NOT EXISTS `subcomment` ( `subc_id` int(11)

Ticket System in PHP - #5 Ticket Processing

Introduction: This tutorial is the final part in my ticket system via PHP tutorial. This part will be covering processing the ticket. Ticket Information: We are already sending the email to the entered 'forgot password' reset form containing the ticket ID. This ticket ID links to the customer account through the column value of 'User'. It should also be noted that the email address only receives

Ticket System in PHP - #4 Ticket Creation

Introduction: This tutorial is the fourth part in my series of how to create a PHP based ticket system. This part will be covering inserting the generated ticket/random string in to the 'tickets' table within your database. Event: We only want to insert a new ticket when a certain event occurs, this event will be when the 'Forgotten Password' link or button is clicked/selected. Are you can see