Archive for the ‘PHP’ Category

PHP One Line IF Statement

I'm sure if you've been programming for a few years that you've come across when you need to check if something equals something than do something else a few times.

Well the best way to do this is like so.

Say for example we have a variable called $num and the value of it is 5.
(more...)

PHP News System Part 4

If you haven't checked out the previous tutorials then click on the names to view them. Part 1, Part 2, Part3.

In Part 4 of this tutorial you are going to learn how to edit and delete your posts from the admin page.
(more...)

Sending Email With PHP

Email is used by most people that use the internet and is good for sending activation codes and notifications to users when you have a website.

To send an email you use the mail() function and it requires 3 parameters.

(more...)

Retrieving an RSS Feed in PHP

RSS Feeds are widely used throughout the internet today and on all kinds of websites. From websites like Digg to most blogs. If you want to display an RSS feed on your website its probably easier than you think.

For this example I'm going to show you how to display the RSS feed for The Tutorial Blog using PHP.

(more...)

PHP News System Part 3

If you haven't already viewed part 1 and part 2 then view them if you're new to PHP.

In part 3 of this tutorial you will learn how to display your posts, edit and delete them.
(more...)

PHP News System Part 2

If you haven't already seen part 1 of this tutorial then watch it here.

For the second part of this tutorial you will learn how to create a cookie to log the admin user in and create the tables for your news system.

(more...)

PHP News System Part 1 (With Sound)

Sessions in PHP

User Login Page Using PHP and MySQL

A follow up tutorial on the user sign up page. This tutorial will show you how to see if the username and password are found in the database and if they are then a cookie will be created.

User Signup Page Using PHP and MySQL

The first thing that we do in this tutorial is create a table and add 3 fields to it then we connect to the database and check to see if the user has input all the required information, if the user has then they will be added to the database. I'll add a line for line explanation later on.