Archtype-K

Free time to work

I finally got some free time to work on this site. Yes I know it's funny that I work when I'm not working but this work is fun(to some extent). Most of my updates are security related and bug fixes. I made the Archive section for all my loyal readers to be able to browse through my wonderful topics. I also use the archives to keep track of new comments. I did some major updates to the comments page. The main thing that I want to point out about the update in the comments page is that you do not have to input a site to post a comment. I finally made it to where if you don't submit a site your name is not an anchor. The only thing is when implementing this piece of code I ran across a very n00bish mistake that caused me to spend more time than the simple 2 minute job that was required. First off I didn't use RegEx(which I should have). I used a conditional and the nifty default for mysql. Here is the mistake a made...

if($site = 0)

Now any PHP programmer would know the mistake right off and start calling me the deserved name n00b. For those of you who don't know. The statement above was setting $site equal to 0 instead of comparing it. This caused the problem to where all the sites in the comments came up as 0. I changed it after I pondered why this phenomenon was happening to this...

if($site = '0')

It worked and I cried because I just lost like 10 extra minutes of sleep from such a simple mistake.


That's enough about programming for today. Let me blab on for the next few lines about my life to current times. Well I worked and went to school. I played warcraft. I bought a few t-shirts from thinkgeek.com. I'm still doing Access in my computer class. I know why he's teaching it to us but many others don't. I wish he would teach us DBMS using MySQL or Oracle. At least then we wouldn't have to suffer the terrible "made for GUI dependent" interface. If you don't get it by now my life is boring with out my computer experiences. wink

Posted At 2006-09-22 00:22:23 by DeadWolf

http://www.archtype-k.com/img/default.pngstas at 2006-11-20 14:30:04

Nice.
i like it

Leave a comment

Refresh the page

BBcode: Enabled

Gravitar: Enabled

Other Entries

View all entries

Global