/usr/portage

Things I don’t really love 5

$database->Execute ("INSERT INTO foo SET baz='".$_POST ['bar']."'");

Filed under , , , & five comments & no trackbacks

Trackbacks

Trackback specific URI for this entry

No Trackbacks

Comments

  1. Scott returns:
    published on March 10th 2006, 12:28:10 pm *

    r00t my SQL!

    Reply

  2. Lars Strojny reckons:
    published on March 10th 2006, 12:33:05 pm *

    You’re right. Root your SQL ;-)

    Reply

  3. Chris responses:
    published on March 10th 2006, 03:26:41 pm *

    Where’s the problem? I know people who use the same statements and do a

    $_POST[‘bar’] = mysql_real_escape_string($_POST[‘bar’]);

    some lines before. I don’t like those people (way of programming) but still can’t takeover their scripts …

    Btw: Would you mind to deactivate google-analytics? It makes you site almost inaccessible.

    Reply

  4. Lars Strojny says:
    published on March 11th 2006, 03:27:23 pm *

    Yeah, I know that. But my example above wasn’t meant this way. It was just a possibility for SQL-injections.
    What do you mean with Google Analytics? Is it slow?

    Reply

  5. rokus states:
    published on March 12th 2006, 12:56:56 pm *

    yap :)

    Reply

Add a Comment & let me know what you think