PHP



Fix SQL INSERT problems with PHP addslashes function

If you’ve created you own custom content management system using PHP, you may have noticed problems inserting data. One of the problems could be that your data may have characters that prevent it from being inserted. Some of the character that would cause this type of problem are single or double quotes, backslash, and NUL [...]

(No Ratings Yet)
02.14.10


How to backup MySQL Database via SSH

First you log in using your terminal application by typing the flowing SSH command:
ssh yourusername@hostname-or-ipaddress
After that, you will be prompted to enter your password. As you enter your password, the text will be hidden. Next we should switch to the “root” user. You can do so by typing the following in your terminal window:
su – [...]

(1 votes, average: 1.00 out of 5)
11.27.09


How to validate Flash absolute url paths

You may want to dynamically change the way your flash file behaves based on where it’s hosted. To do so, you should utilize the “_url” variable to obtain the absolute path of your flash file.

(1 votes, average: 5.00 out of 5)
07.10.09


How to Swap Depth using AS3 via setChildIndex

How to swap depth using AS3 via setChildIndex. This will fix the Warning: 1060: Migration issue: The method getNextHighestDepth is no longer supported.

(11 votes, average: 4.73 out of 5)
05.11.09


PHP Remove last character from string

Want to remove the last character from your text. Just use Substr_Replace. This is how.

(6 votes, average: 4.17 out of 5)
04.26.09


Select UNIQUE or DISTINCT MySQL/PHP Queries

How to filter / remove duplicate items in your database query result using DISTINCT

(7 votes, average: 4.14 out of 5)
04.19.09


PHP how to find Odd and Even numbers

Here is how to find odd and even numbers in php.

(35 votes, average: 4.71 out of 5)
04.19.09


MySQL DISTINCT to Remove Duplicate Listing

How to select and display records from MySQL table using the DISTINCT keyword for unique data.

(24 votes, average: 3.08 out of 5)
04.19.09


Sort Directory Listings

Here is some code to help sort the order of your directory output. This is greate for creating PHP FTP applications.

(1 votes, average: 4.00 out of 5)
04.18.09


PHP Email Form Easy

Now you can send emails from your web sites with full control over design style and functionality. PHP is the way to go for online email form. Here is how to get started.

(No Ratings Yet)
04.15.09