how to protect my site from mysq linjection ?

Discussion in 'PHP' started by ramysarwat, Nov 15, 2010.

  1. #1
    i am building a new web site where users can rigister and post comments

    how can i secure my site from mysql injection and other security threats
     
    ramysarwat, Nov 15, 2010 IP
  2. freshdevelopment

    freshdevelopment Notable Member

    Messages:
    1,303
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    240
    #2
    For a start, use mysql_real_escape_string() on any user generated information that you will be using in an SQL query
     
    freshdevelopment, Nov 15, 2010 IP