The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Browse by Tags

All Tags » MySQL (RSS)
  • Re: $_SESSION[everything]

    Building on some earlier code, I've put together 2 functions that send email to you upon failure. // Set debug email - place this here or somewhere else define('DEBUG_EMAIL','developer@yourdomain.com'); /* Connects to a MySQL server and selects requested database, will die() upon...
    Posted to Forum by nion on 10-17-2008
  • SQL "Injection" WTF

    I just checked into a Holiday Inn in Los Angeles.. and connected to their free wi-fi network. Of course, it loads an authentication page (We were given a logon and password). Maybe it's because I use Opera and not IE, or just maybe they had a database hiccup.. but this is the error page I received...
    Posted to Forum by Hank on 07-08-2008
  • Re: What, no constraint on power consumption? What kind of database guru are you, anyway?

    [quote user="WWWWolf"]However, I'm not sure if all of this is MySQL's fault. Perhaps it's just MediaWiki's fault.[/quote]Both. MySQL replication is dirt simple and dirt stupid. There are generally two patterns to follow: master/slaves (one writer, multiple readers) or multiple...
    Posted to Forum by EX PLO SHUN on 04-30-2008
  • The replacement for Auto-Increment...

    What's a programmer to do when the time clock table doesn't have an auto increment field? You concoct a ridiculous SQL statement in order to do it yourself! <code> $query = "SELECT ID FROM time_clock WHERE right(ID,2)=99 ORDER BY ID desc LIMIT 1"; $dbcre=new DB_cre; $dbcre->query($query); while...
    Posted to Forum by neuralfraud on 07-16-2007
Page 1 of 1 (4 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems