Results 1 to 4 of 4

Thread: SQL Injection

  1. #1
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default SQL Injection

    Is this good enough SQL Injection prevention?
    PHP Code:
    <?php
    $valid 
    $_GET['page'];
    $valid2 mysql_real_escape_string($valid);
    ?>
    Valid2 will be used in a MySQL query.
    kinda quit.

  2. #2
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    It should do yes.

  3. #3
    Join Date
    Aug 2005
    Location
    Webdesign Section
    Posts
    1,032
    Tokens
    0

    Latest Awards:

    Default

    charlie josh has been teaching me php

  4. #4
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    Looks good enough too me :p

    - Dan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •