Even the dumbest people make the smartest mistakes.

With the SQL query like this, is the world really safe with me in it? Wondering why every time someone views a page, the whole clicked column in the page table is incremented instead of the associated value for the page is incremented, I had a look at my code and found this UPDATE pages SET clicked = clicked + 1.

In other news, fear the content onslaught. I thought I'd boot off the content that is coming soon with an article on how to disassemble a maglite, just what you've always wanted to know I'm sure.

One thought on “Even the dumbest people make the smartest mistakes.

  1. Shouldn’t that SQL query include some sort of “WHERE” clause? 😀 Self-defeating SQL queries FTW.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>