Code Category Archive

Coding and web development are passions of mine. I’m constantly learning new things and trying to document it as best I can so that I have a good reference as to what I have done, where I learned it, how I did it and how I will do it next time. Yea I guess you can use some of it too.

Change Rel External to Target Blank using Prototype


Use javascript to make XHTML valid rel=”external” act like target=”blank” in a snap using the Prototype JavaScript library.

Making MySQL Update and Insert Easier


An addition to our PHP/MySQL Query class created last month now we have quick and organized ways to maintain our MySQL INSERT and UPDATE queries.

Setting up an International Multi-Language Site


Sometimes there’s a need for a website to be available entirely in multiple languages. Here we take a look at setting up such a thing, using a single PHP page with a switch statement to display one of five language translations. Using the .htaccess file we also make the URL’s look good while still maintaining minimal pages.

Multiple Select Drop Down Menu in PHP


It’s very easy to take what we did back in January for reusable PHP drop down menu code and make it work for multi value select elements.

Searchers Choice I


I’ve seen how you end up here, now I’m going to help you find what you are looking for by custom tailoring my content to your search needs.

.htaccess Redirect a Directory to a Subdomain and Force WWW


It’s really easy to force the www for your website URL and to redirect a directory properly to a new subdomain address. Just give it a shot, organize your directories!

MySQL Queries Made Easy With PHP Functions Library


Every web developer has a library of code that they reference frequently, if not constantly. I’m sharing with you one of my most useful snippets my MySQL helper class that helps me organize my queries and easily reference commonly used functions.

Populating the Regions, Divisions and States MySQL Tables


The relationships between states, divisions and regions are simple but need to be setup properly from the start. Here we’ll walk though the setup.

US Census Data as a MySQL Database Playground


Somehow I ended up at the 1990 US census and I realized what a valuable data resource it is! All kinds of data that I can use to make a well structured MySQL playground to test new scripts and ideas on.

From Query String to Cookie with JavaScript


Take a query string and save the values to a cookie using JavaScript. A perfect solution for tracking query string’s values throughout a site that isn’t using any server side scripting.