List of Categories

CATEGORY: PHP

Where do I go for PHP help?

Q: Hi. I'm a PHP beginner and I need some help with PHP.  Where is the best place to go and learn php and to find php help? A: PHP is a great language for web programming and it would serve you well to learn it.  My first suggestion for learning PHP is to sit…

PHP/MySQL: How to Store Queries in a Separate Include File

When implementing a php/mysql database (or any database for that matter), it's sometimes easy to have all of the queries located in one place, as opposed to having them hard-coded into the pages. If the queries are hard-coded in, and the queries are reused on multiple pages (which they often are), it can be a…

Regular Expression for Single Letter – PHP

I was working on a project where I needed to validate a querystring for a single letter -- uppercase or lowercase. Since there is no php equivalent to the is_numeric() function, (e.g. a hypothetical is_alpha() function) I decided to use regular expressions to get the task done. I could have used ctype_alpha(), but that function…