Web Analytics Made Easy -
StatCounter what's the best way to clean my data for searching a database? - CodingForum

Announcement

Collapse
No announcement yet.

what's the best way to clean my data for searching a database?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • what's the best way to clean my data for searching a database?

    I will plan to explode a string and add pluses to the front.

    Then, put it into a query WHERE title MATCH(mysql_real_escape_string($string));

    Would this be enough to prevent SQL injection?

  • #2
    Guess it should...u may also consider doing mysql_real_escape_string($string) before adding ur plus

    Comment

    Working...
    X