PHP Tutorial

Forum Tutorial - Deleting Posts

Submitted by Yorkiebar on
Introduction: This tutorial is on how to add the ability for a user to delete their posts. The Theory: We could add a user panel where it lists all the users posts along with options to delete them, but instead we are going to add a delete option adjacent to the post itself to save space - plus I'm planning on making an admin panel tutorial soon. The PHP: So in the part of the PHP where we actually output each reply to a thread, we want to check if the logged in users' username held in the session variable is equal to the author of the post,

Forum Tutorial - Email Verification

Submitted by Yorkiebar on
Introduction: This tutorial will be covering how to add email verification to your user account registration page. As a base for this tutorial, I will be using my already made series of pages from my forum creation series which can be found on my account tracking page (there's around 20 parts!). The Theory: The way this verification is going to work is; The user will enter their email upon registration. A ticket will be created and stored in our database containing a unique string which will be emailed to the users email address. The email will be sent

Get the Difference of Two Time using PHP

Submitted by argie on
This tutorial will teach you on how to get the difference of two time in PHP using php shorttime function. This code will help to thus programmer who want to limit the number of attempts in failed login and can login again with the defined time. To understand more about this tutorial, follow the steps bellow.

Creating Our script that get the difference and display the result

The code bellow will subtract and get the difference of two time using the php date and short time function.

Query Data From Database Using Date Range in PHP/MySQL

Submitted by argie on
This tutorial will teach you on how to query data base on two dates using PHP/MySQL between query. This tutorial is helpful if your are creating your system that needs sales report base on the range of date. To further understand this tutorial follow the steps bellow.

Creating Our Database

First we are going to create our database which stores our data. To create a database: 1. Open phpmyadmin 2. Then create database and name it as "tutorial". 3.

Calculate Or Auto Sum All Price In Database Table Using PHP/MySQL

Submitted by argie on
This tutorial will teach you on how to Compute or Autosum the price of all products in database table using sum function in PHP. To understand more lets follow the steps bellow.

Creating Our Database

First we are going to create our database which stores our data. To create a database: 1. Open phpmyadmin 2. Then create database and name it as "tutorial". 3.

Calculate Or Auto Sum the Value Using Checkbox with JavaScript and PHP/MySQL

Submitted by argie on
In this tutorial I will teach you on how to calculate or auto sum the total value of the product's price using checkbox with javascript and PHP/MySQL. To understand this, follow the steps bellow.

Creating Our Database

First we are going to create our database which stores our data. To create a database: 1. Open phpmyadmin 2. Then create database and name it as "tutorial". 3.

PHP/MySQLi Creating a Forum - Part 19 - User Search

Submitted by Yorkiebar on
PHP/MySQLi Creating a Forum - Part 18 - Related Threads Introduction: This tutorial will be continuing my series of creating a forum in PHP/MySQLi/HTML. In this part I will be covering searching for users. Pre-creation: First you will need a host for your PHP, either a web host or localhost is fine but you will need PHP and MySQL(i) capabilities. Also, this will not be covering creating users, or styling the pages.

PHP/MySQLi Creating a Forum - Part 18 - Related Threads

Submitted by Yorkiebar on
PHP/MySQLi Creating a Forum - Part 17 - User List Introduction: This tutorial will be continuing my series of creating a forum in PHP/MySQLi/HTML. In this part I will be covering related threads. Pre-creation: First you will need a host for your PHP, either a web host or localhost is fine but you will need PHP and MySQL(i) capabilities. Also, this will not be covering creating users, or styling the pages.