Tutorials Page 198
![PHP: Validating Numeric Values and Digits]()
PHP: Validating Numeric Values and Digits
I've inherited a lot of code where the previous developer used PHP's is_numeric() and it's gotten them into trouble. There's a big difference between validating that a value is numeric and validating that a value is all digits. Here's how to validate the two: A...
![Simple Username Creation Validation with PHP]()
Simple Username Creation Validation with PHP
When I create login areas (mostly intranets) for small websites, I'm always asked by the customer to keep usernames to letters and numbers. That means no email addresses as usernames and special characters like "_", "-", and ".". This, in my customer's mind, keeps the...
![Breaking & Fixing Dates from MySQL to PHP]()
Breaking & Fixing Dates from MySQL to PHP
The way that databases store "date" field data is: The way that us humans read dates (at least in the U.S.) is: I write a lot of administrative panel modules that either display dates or, better yet, allow customers to their own dates for articles, events, etc.
![Confessions of an Eccentric Web Developer III]()
Confessions of an Eccentric Web Developer III
It's so fun to share my innermost web development thoughts. Some people get furious about some of my ideas. Luckily I don't give a damn. Take my thoughts for what they're worth. I think it's really odd that we can't view a desktop app's...
![Quickly Set Up a Templating System Using .htaccess]()
Quickly Set Up a Templating System Using .htaccess
Setting up a website capable of easy template switching probably sounds difficult. When I first thought about building a templating system, it felt like a pretty daunting task. After tinkering around for a few days, I found a way that would allow me to...
![Using MooTools 1.2 For Drag, Drop, Sort, Save]()
Using MooTools 1.2 For Drag, Drop, Sort, Save
This post has been updated: Using jQuery or MooTools For Drag, Drop, Sort, Save. The code on this page is no longer best practice. The following is a repost of an article that ran on Script & Style a few months ago.... My...
![David Walsh on Twitter]()
David Walsh on Twitter
Who would've thought that after being such a Twitter-hater, I've been completely drawn into the service? So much so that I have a few links to pass on. Follow Me on Twitter! If you aren't already following me on Twitter...then why the hell not? You can...
![NetTuts Exclusive: Twitter Emulation Using MooTools 1.2 and PHP]()
NetTuts Exclusive: Twitter Emulation Using MooTools 1.2 and PHP
NetTuts debuted my article today: Twitter Emulation Using MooTools 1.2 and PHP! From the article: People all over the world love Twitter because of how easy it is to use. All you need to do is type in your current status, click "Update", and...
![Track File Downloads in Google Analytics Using MooTools]()
Track File Downloads in Google Analytics Using MooTools
A while back I wrote an article detailing how you can use forced downloads via PHP to track downloads. What if you could get that same data into Google Analytics? Using some simple MooTools and advanced Google Analytics tactics, now you can. The HTML Any...
![Create a Custom “:selected” Pseudo Selector in MooTools]()
Create a Custom “:selected” Pseudo Selector in MooTools
A while back I read a very interesting article by MooTools core developer Jan Kassens about how to create a custom pseudo selector in MooTools. I was surprised at the ease in which one can add their own pseudo selector that I...








