tutorial

You are browsing the archives of "tutorial."

Simple PHP/MySQL user login tutorial. Make parts of your website private with a login.

PHP & MySQL Login Tutorial Series
Pt1: Introduction
Pt2: Setting up the database
Pt3: The front end and user validation
Pt4: The code to privatize a page
Pt5: Logout function and clearing the session ID
Part 1: Introduction
Sometimes it’s important to restrict access to certain parts of a website, and the best way to regulate this access is through a user [...]

PHP Tutorial #3 – IF Statements

PHP Tutorial #3 – IF Statements
In order to make a successful PHP website, it is crucial to know how to correctly use if statements. IF statements, similar to CASE, have many advantages. Before we go further into these handy tools, let’s examine what they can do.
The IF statement allows you to control different parts of [...]