If you’re familiar with web programming and AJAX and PHP, check out this item about Client-side PHP on The Daily WTF. Go ahead, take a look. I’ll wait.
Done? Good. Now, if you’re familiar with what’s happening in that code, I’ll wait while you convulse in horror. :)
Holy expletive, that code makes me angry and want to laugh at the same time. I’ll just reiterate Deane’s headline: Someone please fire the person who wrote that.
Comments
2 responses to “Bad PHP! Bad!”
I wasn’t in programmer mode (just got done designing a marketing piece) when I first looked at that and thought "OK, it’s just ugly, but what’s the problem?" Then I actually looked at the code and saw that it was basically taking whatever you put in the form and executing it straight into the SQL query, I would now agree: Somebody needs a butt-kicking.
Even though I’m not a good programmer at all, I do appreciate some of the hideous stuff on DailyWTF — been reading it for a long time (the Microsoft-based pieces of code are always the worst). Thanks for the reminder to check back there again!
ok, what the **** is that o_O
The guy obviously is a serious noob.
I’d love to find any of his made shopping sites. Will look around that forum.
Why do that o_O, it doesn’t make no sense.
LOL
nOOb, that guy is.