Archive

Archive for the ‘Tutorial’ Category

AJAX Tutorials

April 12th, 2009

These tutorials show you how to incorporate AJAX into a PHP/MySql Web site. I’ve split this up into two tutorials. The first is an introdution to AJAX, explaining what AJAX is and showing several examples of it in use. The second video shows you how to create a simple AJAX application.

Watch Videos

  1. AJAX Introduction
  2. Using AJAX with PHP and MySql

View Live Demo | Download Code

Database
The database for this example is very simple. It contains a single table called Users. The Users table has the following columns: id, username, password, email, gender, and age. View the picture below for more details on the database table.

Users Definition

Users Definition

Links

Video Tutorial: SQL – Select Statements

March 31st, 2009

Watch video | Download video

In this video I go over some basic SQL Select statements.I use MySQL Administrator to write and test the queries in.

If you are in IMD312 this video covers Week 4 Assignment 3

Author: Erikk Categories: IMD312, IMD331, MySQL, Tutorial Tags:

Video Tutorial: Blog Example Search Page

March 28th, 2009

Watch video | Download video

This video expands upon the Blog Example video and shows how to create a simple search page.

The code used in the video can be downloaded here. To see the blog example in use check out http://er5325.aisites.com/blog_example/.

Author: Erikk Categories: IMD323, IMD331, MySQL, Tutorial Tags: , , ,

Video Tutorial: Blog Example

March 28th, 2009

Watch video | Download video

This video shows how to create a web page that displays records from your database. In this example, we code all the PHP ourselves, instead of relying on Dreamweaver. It uses a simple blog as an example.

The code used in the video can be downloaded here. The example files expand upon the video. There is a master page (index.php) which lists all the blog postings. There is a details page (blog.php) and a search page (search.php). I also have a video detailing how to create the search page.

To see the blog example in use check out http://er5325.aisites.com/blog_example/.

Author: Erikk Categories: IMD323, IMD331, MySQL, Tutorial Tags: , , ,

Video Tutorial: Master Detail Pages

March 27th, 2009

Watch Video | Download Video

This video shows how to use Dreamweaver to create a master page which displays all the records from your database and then a details page which will show the details of a given record.

For IMD331: Web Site Development II this is for Week 4 Assignment 2.

I skip over how to create the database connection in this video because we did it in a previous one. If you do not remember how to create the connection please watch Using Dreamweaver to display data from MySQL

Screenshot of the master page

Screenshot of the master page

Screenshot of the details page

Screenshot of the details page

Video Tutorial: Using Dreamweaver to display data from MySQL

March 27th, 2009

Watch Video | Download Video

This video was done using Dreamweaver CS3. The steps are the same in CS4.

If you are in IMD331: Web Site Development II, this is for Week 4 Assignment 2.

If you are in IMD323: Database Systems, this is for Week 5 Assignment 1

Video Tutorial: MySQL Administrator

March 26th, 2009

Watch Video | Download Video

This video goes through how to adminster a database using a GUI based tool called MySQL Administrator. I find that using this application is much easier than going through phpMyAdmin.

This video will go through installing the application, creating a new database and then how to connect to your database using MySQL Administrator.

Important Note: Some students have indicated not being able to connect to their database using MySQL Administrator. I believe that some of the OLS database servers are restricting users from connecting using this method. If you are unable to connect using MySQL Administrator first verify that your username/password and database server name are correct. If you are sure they are correct and still cannot connect it is most likely because you are on a server that is unable to use MySQL Administrator.

Author: Erikk Categories: IMD323, IMD331, MySQL, Tutorial Tags: , , ,

Video Tutorial: How to Install WordPress on your OLS site

March 19th, 2009

Watch video | Download video

  1. Review the Installing WordPress guide. This will give you a brief rundown of the steps necessary to install WordPress.
  2. Download Wordpress from http://wordpress.org/download/
  3. Setup the MySQL Database
  4. Decide what URL you want to assign the site. i.e. http://website.com/blog, http://website.com/wordpress, http://website.com/
  5. Extract the downloaded zip file to your local computer.
  6. Rename wp-config.sample to wp-config.php
  7. Open wp-config.php and change database values. Also change the authentication keys section. Use the online generator for this part.
  8. Upload files to your server.
  9. Run WordPress Installation.
Author: Erikk Categories: Tutorial, WordPress Tags: ,

Video Tutorial: Introduction to jQuery

March 18th, 2009

In this tutorial I introduce jQuery. jQuery is an open source JavaScript Framework which simplifies writing JavaScript code.

Source files used in the video can be found here.

Watch video | Download video| View Live Demo

Author: Erikk Categories: IMD401, Tutorial, jQuery Tags: ,

Video Tutorial: phpMyAdmin

March 18th, 2009
Author: Erikk Categories: IMD323, IMD331, MySQL, Tutorial Tags: , , ,