Replacing apostrophes in MYSQL with a simple "
#1

Well, I have this problem with mysql with a dynamic faction system that each time I insert a apostrophes( ' ) it causes a generic bug.

I've been trying to replace it with a ( " ) but it's a problem due to samp using "..." as strings.
Is there anyway to somehow fix the bug or forcely insert the quote mark?
Reply
#2

You've got yourself the pretaste of sql injection. You have to escape your strings, using mysql_real_escape_string or some similar function, otherwise anyone can screw with your database
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)