Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
Well I just moved to mysql. Is this the right way?
UPDATE username = `%s` where ID = %d", ID)
Basically this part, `%s`. Should I always use `%s`? I noticed in some examples people used '%s'
Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
I noticed you did `username`. Should I always do that, or? Also I did use ' before but thing is, it errors out when I have to save a business with name for example: John's store
You can put ` or not. So far as I know about MySQL
Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
What about the problem when strings I am saving have ' in them?
No, there will no ' (Apostrophe) when you save the Player's data, it will be the same, you just need an ' (Apostrophe) at every string when you're using MySQL or SQLite
Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
Im not sure you are getting what I mean. Im unable to save (update) the tables of my business data, because my business name is John's store. The 's bugs it up.