ow to protect my search from sql injection?? stripslashes?

Discussion in 'PHP' started by cornetofreak, May 8, 2008.

  1. #1
    i got a search on my site but i cant work out ow to use striplashes or is there another way?
     
    cornetofreak, May 8, 2008 IP
  2. xadet3

    xadet3 Peon

    Messages:
    565
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    MySQL? mysql_real_escape_string or escape_string if you're using the MySQLi class.
     
    xadet3, May 8, 2008 IP
  3. cornetofreak

    cornetofreak Peon

    Messages:
    170
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sweet A*, done it :):) THANK YOU SO MUCH MATE
     
    cornetofreak, May 9, 2008 IP