MySQL saving error
#2

You need to escape your strings. Basically, any string you're inserting into a database that can be typed out directly from a player needs to be escaped. For one it will make it so you don't receive SQL errors if, for example (like in this case), they put an apostrophe in the string. It also makes it so people can't destroy your database.

Use mysql_real_escape_string() or mysql_escape_string() (if running R31) to do this.
Reply


Messages In This Thread
MySQL saving error - by MSuperXX - 15.08.2013, 00:04
Re: MySQL saving error - by Scenario - 15.08.2013, 00:09
Re: MySQL saving error - by MSuperXX - 15.08.2013, 00:29

Forum Jump:


Users browsing this thread: 1 Guest(s)