Follow Us!

Access a MySQL Database Using PDO

Posted by on Nov 2, 2010 in Database Tutorials, MySQL Tutorials, PHP Tutorials, Web Development Tutorials | 2 comments

This tutorial will show you how to access a mysql database using the PHP Data Objects interface, also known simply as PDO. One big...

Read More

Using jQuery to Reorder a List and Update a Database

Posted by on Sep 30, 2009 in AJAX, PHP Tutorials, Web Development Tutorials | 38 comments

This tutorial will show you how to use jQuery to allow as list (UL) to be reordered and will also make an AJAX call to a PHP file that will update the database when an item is dropped. I found this useful for a project I was working on recently. The user wanted to be able to change the order that categories displayed in a report. The items are stored in a database with a field called display_order. When the report is generated we simply order by that field.

Read More

Sending E-Mail to validate User Sign-up

Posted by on Jul 22, 2009 in PHP Tutorials, Web Development Tutorials | 15 comments

In on of our last tutorials we covered how to verify that a user’s email address is formatted correctly as well as verify that it goes to a valid domain name. That is great, but still not a great way to make sure a user actually owns or uses that e-mail address. This tutorial will walk you through one method of sending the user an e-mail upon signing up that gives them a link to activate their account.

Read More

How to Parse a CSV File Using PHP

Posted by on Jun 18, 2009 in PHP Tutorials, Web Development Tutorials | 27 comments

In this tutorial you will learn a simple way to parse CSV files using PHP and output the text of the fields you need. This tutorial is not going to go into what you can do with the data once you get it from the CSV as the possibilities are endless. We will simply show you how to get the data into an array in PHP.

Read More

How to Return MySQL Results to a Table

Posted by on Mar 30, 2009 in PHP Tutorials, Web Development Tutorials | 23 comments

This question has been asked several times lately and I wanted to clear this up. This is a very easy concept once you get it down. In order to display the results from a MySQL query into a table will will store the results in an array and then echo out each row in a while loop.

Read More