I’m a fucking idiot. That is all. For those of you non-geeks and other that are but just don’t want to look at a stupid error, now’s you chance to stop reading.

Still here, GREAT! That’s stupendous.

Once upon a time, your’s truly (me) was having a problem formatting the birthdays of a contact being enterred. So to debug, I had the following code

The problem that I was trying to figure out was that no matter who was logged in and added a contact, it always showed up under user ‘acedanger’. Can anybody figure out why?? Too late. The code should have been:

if($user == ‘acedanger’) {
echo $birthday;
}
with the only difference being the extra ‘=’. A single ‘=’ sign in PHP is an assignment operator whereas double ‘==’ signs is a testing operator. (Notice how I am able to use technical terms in everyday speak! I’m a l33t programmer/moron). Anyway…that is all. Continue on your way, not being a moron like myself!

Filed under: PHPPeopleArrayWeb DevelopmentWebsite

Like this post? Subscribe to my RSS feed and get loads more!