CSS shortcuts combine cascading style sheets rules into one efficient line of code. If your web site uses large stylesheets, cutting down on the amount of CSS code can help your code to load and render faster. Not all related CSS rules can be combined … [Read more...]
Use Good Netiquette When Designing Your Web Site
Netiquette, or Net etiquette, is a set of guidelines for content and web site design that seek to create a seamless communications channel with users and to avoid areas that sometimes cloud or confuse the communications. Many rules that have become bona … [Read more...]
Populating a Select Box Using PHP and MySQL – PHP Tutorial
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 … [Read more...]
How to Use the PHP Ternary Operator
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 … [Read more...]
Preventing SQL Injection with MySQL and PHP
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. An SQL … [Read more...]
Using External CSS Style Sheets
External CSS style sheets offer numerous benefits to web site design. This tutorial assumes that you already know something about the use of cascading style sheets. Our focus is on helping you to implement it better with your web site. First, they … [Read more...]
A Fix for Missing or Broken Images
Here is a simple fix for problems with missing images in situations when you cannot predict when an image might be missing. Why not just fix the missing image problem? Well, sometimes a site relies on images from another source, such as those provided by … [Read more...]
Simple PHP Banner Ad Rotator Script
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. This … [Read more...]
FileZilla Tutorial – Setting Default Directories
FileZilla is a real nice FTP utility that competes well with WS_FTP, CuteFTP and other popular tools. The best part about FileZilla is that it is a free download from Source Forge. The only issue I have with FileZilla is that the user interface is … [Read more...]
JavaScript Bookmark Code
Adding a bookmark to your Web site helps assure that visitors who like your web site and wish to return can easily find it once again. Adding a bookmark is easy to do and does not require any in-depth programming knowledge. It's a simple matter of … [Read more...]