In this video, I show how to build a simple autocomplete search box. You have probably seen this feature on popular sites such as Netflix, Google, Hulu and Adobe. When you start to type in a search box, you get results returned immediately that match what you typed.
I used PHP, MySQL and jQuery to create this example.
What you need to do in order to get this to work:
In order to get this working on your site, you will need to follow a few steps.
- Setup your database. You can use a database you already have or create a new one. If you already have a database and table created you can skip this step. You can view my other MySQL tutorials for more details on setting up a database.
- Modify the include/dbconn.php file. You will need to modify this file to connect to your database. You will need to provide your server name, username, password and database name.
- Possibly make changes to get_customers.php. You will most likely have to make some changes to this file as well in order to use your own table name.
For example, on line 9 my query looks like this:
$query = "SELECT first_name, last_name FROM Customers WHERE last_name LIKE '%" . $queryString . "%' ORDER BY last_name, first_name";
You will have to change that line of code to match your database table and column names.
You will also need to modify this line of code from get_customers.php:
echo '<li onclick="fill(\'' . $row['first_name'] . ' ' . $row['last_name'] . '\');">' . $row['first_name'] . ' ' . $row['last_name'] . '</li>';
You will need to change $row['first_name'] and $row['last_name'] to match the name of your columns.
This video shows how you can preview the output of PHP within Dreamweaver. If you are use to using the Design view to preview how your page looks, you may have noticed that this does not work with PHP code. Instead you will usually see nothing where your PHP code is at.
However, you can use the Live View to preview the output of your PHP code from within Dreamweaver. This video shows you how to do that and what you need to setup in order to be able to do this.
Watch Video

Watch Video | Download Video
This video shows you how to create a new MySQL database on your OLS server. Then I go into using phpMyAdmin to create the tables in your database. Finally I show a simple PHP page that will pull the information out of the database and display it in a web page. I also have several other videos about MySQL and data access, including using Dreamweaver to write the PHP code for you.
Author: Erikk Categories: IMD312, IMD323, IMD331, MySQL, OLS, Tutorial Tags: IMD312, IMD323, IMD331, MySQL, OLS, Tutorial
Watch Video | Download Video
You can download the code for this video from here: Email code example
Watch Video | Download Video
You can view the code from this example here: Week 4 Assignment 3 code
Watch Video | Download Video
This video will show how to create the dynamic confirmation page. This video was created in Dreamweaver 8, so it is a little old, but all the code is the same.
Watch Video | Download Video
In this video I go over the basics of SQL.
Watch Video
This video shows how to customize the look of a WordPress Web site using themes. This is a very simple process. Themes can be downloaded from the WordPress Theme site.
There is also a site that has a lot of WordPress videos. I would recommend it to everyone if you are interested in learning about how to customize the look of WordPress. Scroll down about halfway down the page, titled “WordPress for Designers Series.”
http://blog.themeforest.net/resources/html-css-php-and-jquery-killer-tutorials/
Watch Video | Download Video
This video tutorial shows you how to use Microsoft Access to create SQL queries. The advantage to using Access is that it has a gui based tool that will help you create the query.