PHP Tutorials Category
Wednesday, November 11th, 2009
Many older sites written in PHP as well as many newer sites that evolved from older legacy code will find their sites broken when their servers are upgraded to PHP 5.3. That’s because many older PHP functions and INI directives are now formally deprecated (made obsolete) in version 5.3.
(more…)
Posted in PHP Tutorials, Tech News, Web Site Development | No Comments »
Saturday, February 28th, 2009
Sometimes there is a need to display the list of files in the directory and allow a user to select a file name from the list. We run into this most often when a user must be able to select an image or a document to be downloaded or displayed after being selected. Here is a very simple PHP script that will display the content of a web site directory using an HTML select list.
(more…)
Posted in PHP Tutorials, Web Site Development | 4 Comments »
Wednesday, January 21st, 2009
Sometimes you need to use a drop-down select box routine to allow users to select a date that you can easily save in a MySQL database. Here is one way to generate date boxes using PHP. The code also includes a JavaScript date validation function that prevent users from selecting an invalid date. The function also handles leap year situations.
(more…)
Posted in PHP Tutorials, Web Site Development | 5 Comments »
Monday, November 10th, 2008
3D movies have recently seen a resurgence in the movie theater. Due to new 3D theater technologies, several 3D version of movies have hit the theaters and a few of those have made it to home theater formats in both standard DVD and Blu-ray.
(more…)
Posted in Home Theater, PHP Tutorials | 31 Comments »
Thursday, October 16th, 2008
One of the first questions that comes up when someone starts using PHP and the very powerful MySQL database is: How do I page through the results of a query like I see with search results on many web sites? This is pretty easy to accomplish if you know how to use the MySQL LIMIT clause.
(more…)
Posted in MySQL Tutorials, PHP Tutorials, Web Site Development | 6 Comments »
Monday, June 2nd, 2008
It is common to add a drop-down select box that is populated with USA states or Canadian provinces to PHP applications. There are basically three ways to do this. You can hard-code all of the Select box selections into your application, you can add the states to a MySQL database manually, or you can use the handy code on this page to create a States table in MySQL in just a few seconds.
(more…)
Posted in MySQL Tutorials, PHP Tutorials, Web Site Development | No Comments »
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…)
Posted in Internet Technology, PHP Tutorials, Web Site Development | No Comments »
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…)
Posted in PHP Tutorials, Web Site Development | 9 Comments »
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…)
Posted in PHP Tutorials, Web Site Development | 4 Comments »
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. An SQL injection attack occurs when a hacker or cracker (a malicious hacker) attempts to dump the data in a database table in a database-driven web site. In an unprotected and vulnerable site, this is pretty easy to do.
(more…)
Posted in MySQL Tutorials, PHP Tutorials, Web Site Development | 22 Comments »