Home :: About Us :: Guidelines

PHP Tutorials Category

Page 2 of 212

PHP Shopping Carts Worth Looking At

Saturday, March 1st, 2008

A shopping cart is an essential component of every e-commerce site. Although there are literally hundreds of shopping carts to choose from, only a few stand out. PHP is the preferred shopping cart language because it is the most popular web development language on the Internet. When combined with the MySQL database, PHP is unbeatable for cost effectiveness. (more…)

Populating a Select Box With PHP and MySQL – PHP Tutorial

Thursday, November 22nd, 2007

This is a simple PHP script that takes data from a MySQL table and uses it to generate a drop-down select box for an HTML form. This can be used for a list of states on a credit card or user data form, or for a category selection or something where you need to pull the selections from a MySQL table. The script uses PHP to generate the HTML that is sent to the user’s browser. (more…)

How to Use the PHP Ternary Operator

Sunday, November 11th, 2007

The ternary operator is a shortcut comparison operator that replaces an if-else statement in a PHP script. If you use a lot of comparison statements in your scripts, this can greatly reduce the number of lines of code. The ternary operator is really very simple to use, but it does tend to confuse newbie PHP programmers. (more…)

Preventing SQL Injection with MySQL and PHP

Monday, November 5th, 2007

Most new web developers have heard of SQL injection attacks, but not very many know that it is fairly easy to prevent an attacker from gaining access to your data by filtering out the vulnerabilities using MySQL extensions found in PHP. (more…)

Simple PHP Banner Ad Rotator Script

Friday, August 3rd, 2007

Banner ad rotators can range in complexity from simple systems that randomly display banner or sidebar ads, to very complex systems that track every click on each ad and display different ads based upon preset percentages for each ad display. (more…)

Page 2 of 212