Article pagination with OOP (split article into pages)

When you have a long article you may want to split the article into pages. This is easy to do on a static page but what if you have a dynamic page if would be better to let php split the article into pages every time you have a certain tag like say [more].

Comments 0 Listed In PHP Posted On 09.01.2010

Strip tags from a string

From time to time you may need to remove certain tags from a string but leave other tags in tact, This tutorial will show you how to accomplish this.

Comments 0 Listed In PHP Posted On 05.01.2010

Delete rows from a MySQL database with a confirmation

Delete rows from a MySQL database with a confirmation

This tutorial shows you how to delete rows from your database and uses a JavaScript powered confirmation basically when you press delete a confirmation message will appear asking if you want to delete then item making sure you meant to delete it.

Comments 0 Listed In PHP Posted On 28.11.2009

Limit the amount of characters from a MySQL Query

Tutorial to limit the amount of characters from a MySQL query.

Comments 0 Listed In PHP Posted On 28.11.2009

Login Script with Validation

A login script tutorial to log users into your database driven site using sessions

Comments 0 Listed In PHP Posted On 28.11.2009

Change file permissions dynamically with php

A tutorial to change file permissions dynamically with php

Comments 0 Listed In PHP Posted On 28.11.2009

Split a string into parts using explode

A tutorial to split a string into parts using explode.

Comments 0 Listed In PHP Posted On 28.11.2009

Delete folders from server using PHP

A tutorial to create a function to delete folder and all sub folders from the server.

Comments 0 Listed In PHP Posted On 28.11.2009

Motion tween with actionscript

If you ever wanted to do a motion tween with actionscript this tutorial will be very useful.

Comments 0 Listed In Flash Posted On 28.11.2009

Custom error pages with htaccess

A tutorial to enable custom error pages with an htaccess file. Note htaccess files only work on a linux server

To create an htaccess file open notepad or any plain text editor and save the file as .htaccess, if using notepad make sure the file type is set to all files or you will create a txt file.

Comments 0 Listed In HT Access Posted On 28.11.2009

Override file upload sizes an htaccess file

A tutorial to override file upload sizes an htaccess file. Note htaccess files only work on a linux server

By default you can only upload files up to 2MB in file size but this can be increased with an htaccess file.

Comments 0 Listed In HT Access Posted On 28.11.2009

Disable Directory Browsing

A tutorial to disable directory browsing with an htaccess file. Note htaccess files only work on a Linux server

Comments 0 Listed In HT Access Posted On 28.11.2009

Edit data from a database

A tutorial to edit existing data from a MySQL database.

Comments 0 Listed In PHP Posted On 28.11.2009

Show all MySQL databases and tables

Want to see what databases you have and what tables are inside each database but do not have access to phpmyadmin or similar program?

Luckily mysql has some built in functions that enable you to see your databases and tables easily.

Comments 0 Listed In PHP Posted On 28.11.2009

Naming your sessions

In PHP when you create a session and give it a name always make the name unique and not the same name as any variables you have.

Comments 0 Listed In PHP Posted On 28.11.2009

CSS for different versions of IE

Some times your site looks different in IE 6 then it does in 7 or in Firefox. Most of the time you can combat this with better coding but there's times when that just not enough.

Comments 0 Listed In CSS Posted On 28.11.2009

Registration script with Validation

In this tutorial I will explain how to create a user registration script along with validation.

Comments 0 Listed In PHP Posted On 28.11.2009

Searching with PHP and MySQL beyond LIKE

Ever wanted to add a search feature to your php & MySQL driven web site? Then your in luck this tutorial shows you how!

Comments 0 Listed In PHP Posted On 28.11.2009

Switch Statement

From time to time you may need to find a value of a variable to perform an action you can do this with an if elseif else statement but its much more efficient to use a switch statement to do the same thing.

Using a switch statement means less code and easier to read.

Comments 0 Listed In PHP Posted On 28.11.2009

Magic Quotes

This tutorial will explain what magic quotes are and how to use them

When Magic Quotes are enabled will automatically escape single and double quotation marks.

This helps prevent problems in php/html.

Comments 0 Listed In PHP Posted On 28.11.2009

PHP Redirect

Tutorial on PHP redirect to be redirected to another page or web site

For this tutorial lets suppose you have moved your web site to another domain and want your visitors to be redirected to your new domain you can use PHP for this purpose.

Comments 0 Listed In PHP Posted On 28.11.2009

Contact Form Tutorial

Need a contact form for your site? This tutorial shows you how to create one.

This tutorial assumes you have a basic knowledge of PHP there are other tutorials on this site that explains some of the mechanics used here.

Comments 0 Listed In PHP Posted On 28.11.2009

If statements

An introduction to if statements and else statements

When your interacting with php from time to time you may want to show something else depending on a condition this is very simple to do using if and if else statements.

Comments 0 Listed In PHP Posted On 28.11.2009

Sticky Forms with PHP

Ever submitted a form and not filled in all the field only to have to fill them all in again? This tutorial shows you how to keep your inputted data.

Comments 0 Listed In PHP Posted On 28.11.2009

Using the Rand() function in PHP

This tutorial introduces you to the function rand()

MySQL has many built in functions one of which is called rand() which is short for random. From time to time you might want to display some results from your database in a different order and here's where the rand() function comes into play.

Comments 0 Listed In PHP Posted On 28.11.2009

Limit MySQL output

This tutorial will show you how to limit how many results you get from a database query

This tutorial assumes you have an understanding of basic PHP syntax.

Comments 0 Listed In PHP Posted On 28.11.2009

Counting results in PHP

A basic tutorial to show you how to use php to count the number of results in a MySQL query

For this tutorial lets say you have a members site and would like to count how many members you have then print out the result.

Comments 0 Listed In PHP Posted On 28.11.2009

Including files

Including files with php is very easy to do. This tutorial shows you how.

The main reasons why you might use php includes/require one of these reasons is to include the footer in to every page but only have one footer.

Comments 0 Listed In PHP Posted On 28.11.2009

Viewing data from a database

A tutorial on viewing data from a database

There are many ways to retrieve data from a database this tutorial will show you a popular way of selecting the data you want and then printing it to the page.

This tutorial assumes you have a basic knowledge of PHP

Comments 0 Listed In PHP Posted On 28.11.2009

Inserting data into a database

A tutorial on inserting data into your database.

This tutorial assumes you have basic knowledge of PHP and you have access to a MySQL database. Also you can connect to your database.

Comments 0 Listed In PHP Posted On 28.11.2009

Creating a table within a database

This tutorial will explain how to create a users table in your database. This tutorial will assume you know how to connect to the database.

Comments 0 Listed In PHP Posted On 28.11.2009

Javascript Redirect

This tutorial will show you how to redirect your page with JavaScript.

first you need to tell the browser your using JavaScript by using

Comments 0 Listed In Javascript Posted On 27.11.2009

Connecting to a database

This tutorial will explain how to connect to your database.

First open a text editor such as Notepad or Dreamweaver..ect

To start a php page you need to declare your using php. To do this you write the php open tag

Comments 0 Listed In PHP Posted On 27.11.2009

Styling forms with CSS

Forms come in all shapes and sizes but they all look the same and as such they all look really dull but you can change that by styling them with CSS so they match the theme of your site.

Comments 0 Listed In CSS Posted On 13.11.2009