You mean this -->
CSLNWNX_SQLEncodeSpecialChars which is part of
_CSLCore_Nwnx.nss ( and other similar code ).
example usage ( which is being used in real situations )
sSQL = "INSERT INTO "+CSLDB_PREFIX+"player (playerlogin,cdkey,firstlogin) VALUES( "+CSLInQs(sPlayerLogin)+", "+CSLInQs(sCDKey)+", NOW() );";
that quoting function is ( which is in the above file i linked to )
string CSLInQs( string sIn )
{ // Encodes Special Chars and Encloses a string in Single Quotes
return "'" + CSLNWNX_SQLEncodeSpecialChars( sIn ) + "'";
//return "'" + CSLNWNX_SQLEncodeSpecialChars(sIn) + "'";
//return "'" + sIn + "'";
}
I have a string function as well which
cleans up oddball characters in a players name. This makes it so players don't use accents which prevent other players from typing their names in if they want to chat with them.