HTML Drop Down Select Menu of U.S. States with PHP Array

October 28, 2011 in HTML & CSS, PHP, Programming, Tutorials by admin

Here is as easy to use way of displaying a drop down select menu of the United States states using PHP and an array. The full array with the U.S. states is available as well as a basic HTML select menu. Whether you are new to PHP or you are working on your 20th E-Commerce website and need an easy to use way to print out the states drop down, this post should help you.

How to use PDO and Prepared Statemets from a mysql_ developer’s view

December 21, 2010 in PHP, Programming, Tutorials by admin

If you have been using php and mysql and have no idea what PDO is, then read this tutorial now. PDO stands for PHP Data Objects and it is a lean and efficient way to interact with databases. PDO uses a unified API allowing for better consistency and is a must learn for every PHP developer.

Create your own URL shortener with PHP

in PHP, Programming, Tutorials by admin

Link shortening websites have been popping up all over the web with the huge explosion in micro blogging requiring a character limit in posts. Sites like have become an integral part of twitter in order to maximize the quality of posts. If you are reading this article you probably already know this and just want to know how they are able to shrink down large links and transform them into a very tiny one. We can achieve this with PHP, and the hardest part can be done in just one line of code. Yes it really is that simple.

Get PHP to work in HTML files (.html) with htaccess

November 14, 2010 in Apache & htaccess, Tutorials by admin

If you have ever wondered how people are able to execute PHP in .html files, the trick is easy and works with the .htaccess file. The .htaccess allows us to do many customizations with how we can display our urls.

Create a range of numbers and letters with PHP range()

November 13, 2010 in PHP, Tutorials by admin

Many people work far too hard and write too many lines code to achieve what PHP has already built in. If you have ever created an array of numbers or letters trying to get a range of numbers like from 1-10, 10-100 in intervals of 10, or even a range of letters from A to Z then you will most definitely find range() extremely helpful.

PHP Modulus Operator to Create New Row

September 30, 2010 in PHP, Tutorials by admin

Have you ever had a online store, photo gallery, large list etc. that you wanted an easy way to tell php to start a new row of entries. For example you have 20 photos but only want 4 photos per line?
There is a really easy way to do this using the php modulus (%) operator.

Change CSS Styles with Javascript

August 21, 2010 in Javascript by admin

Have you ever wondered how to use JavaScript to dynamically change your CSS styles on the fly? Changing CSS styles using JavaScript is actually fairly easy and can be used to create wonderful interaction. Since JavaScript and CSS are client-side languages we can easily change these without having to reload the entire page. I will be covering the easiest ways I have found to do this by changing styles on ID elements directly and showing how to change the class of an element.

SEO Friendly Clean URLs with mod_rewrite Underscore to dash

August 15, 2010 in Search Engine Optimization, Tutorials by admin

Many people have a really hard time finding a way to generate clean links for their site. Everyone wants to increase their search engine optimization and this is one of the absolute best ways to do it. In this example we will remove the .php from our file name and then turn all underscores into dashes.

Simple Emailer Class with PHP

March 1, 2010 in PHP, Tutorials by Nathan Lampe

Learning how to use PHP’s mail functions with OOP can make sending emails a lot easier and faster when building web applications. For this tutorial you will need a server with php and email. You can use this class to process contact forms, send automatic emails, and any other place where you need to use the php mail functions.

Resize Animated Gifs with PHP and ImageMagick

in PHP, Tutorials by Nathan Lampe

This question gets asked a lot and some seem to have a hard time finding a quick and easy answer to it. So how do you resize an animated gif with PHP and ImageMagick?

It’s pretty simple.

Page 2 of 3123