• Saving strings in sqlite
    3 replies, posted
how do i do it?, i know how to save Int's but not strings [editline]11th March 2011[/editline] found out, to all other people who has the same problem take a look at this [b][url=http://wiki.garrysmod.com/?title=G.SQLStr]G.SQLStr [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
That's escaping strings, you only need to do that if you're saving something that will have certain characters in it, like " or ' for example.
[QUOTE=Drew P. Richard;28546669]That's escaping strings, you only need to do that if you're saving something that will have certain characters in it, like " or ' for example.[/QUOTE] Use it always, no matter what characters you got in your string. I managed to fuck up my whole database once when I didn't have that SQLStr.
You only need it where you are not controlling the strings. Like if you ask the player input something or are saving his name.
Sorry, you need to Log In to post a reply to this thread.