I hadn’t intended on redoing any websites tonight, but while I was talking with maddslacker of my Linux group he mentioned that he did not like how his mother-in-law’s site looked. He sent me a link and I made a couple suggestions, then I saved the page with Firefox and did a little editing to
MySQL: Create a Unique Composite Key
I have a lookup table where I am using a composite key which must be unique. I was not sure if MySQL was able to do this or not, but I very quickly found out. It is quite a simple operation actually. I already had a table in existence so I simply altered it. ALTER
Crazy NULLs in MySQL
The topic of MySQL and NULLs came up in my IRC room today. It turns out that MySQL tends to handle NULLs in a rather wonky way at times. Personally, I usually do not like allowing NULLs, and the only time they are ever present would be in a RIGHT or LEFT JOIN that had
Automatically Resize an IFrame From It’s Content
I recently had a situation with a client where I needed to use an iframe to pull content from a bulletin board into their main site template. Setting up the iframe was the easy part, then I noticed that the content would auto size the width, but it would not autosize the height. As I
PHP: Email Validation
There are an overwhelming number of regex sequences out there to validate an email address against, and frankly I get tired of running through them all trying to find one that fits my situation. I went looking for one that most closely follows the IETF rules and lo and behold I find a document describing