Web Development RSS feed for this section

When to use a single(‘) or double(“) quote in PHP

When writing in PHP, the developer has the option to edit utilize single (‘)(apostrophe) or a double quote(“). The ability to use either quote is a convenient, but it should be noted that there is a subtle, yet distinguishable difference between each. There is actually a strategic use for each one

Read more

How to call a PHP function based on a variable value.

For whatever reasons there may be a need for a function to be called based on the name of the function. For example

Read more

Adding a “search entire web” functionality to your existing search – Google Site Search

If your website is utilizing Google Site Search (www.google.com/sitesearch) to provide search results for your website, then you may have considered providing the ability to choose to search between your local site and to search the entire “World Wide Web”. Here is how you do it. First of all, I am assuming you already have [...]

Read more

How to iterate through SQL results in PHP

Retrieving a SQL array is fairly simple and straight forward. This post will aid you in your efforts to iterate through these results. The first method, and most popular method to iterate through SQL results in PHP is using the mysq_fetch_array(). Using this function returns an array that you can then use to get your [...]

Read more

PHP Function: Calculate time passed

My student worker came up with this function. Its a clever way to detect how long ago something was done. For example “2 hours 30 minutes ago” might reflect the time of a post.

Read more