Probably not the best place to ask this. I’m having some difficulty with mySQL where I pass in queries which cause errors where on other platforms there are no errors.
For example ```SELECT * FROM players WHERE Username = Anthony AND Password = `Anthony’s Password```` yields "Unknown column ‘Anthony’ in ‘where clause’.
It works fine when I use double quotation marks but not single quotes.
In my code however I’m struggling to get quotation marks to work in literal strings, I know I have to add a backwards slash before each quotation mark, but it comes out including the backslash in the string.
Right, but I’m not ready to rule out that it’s just a string related issue yet. I’m not using any php files, all the code is written in C#, and I figure mySQL is somewhat related to networking since it involves contacting a server.
I wouldn’t recommend using Unity, to write directly to DB, unless you are 100% that client will not try to hack the application and DB is not connecting to other Unity clients. For example online games. In such case.PhP would be recommended solution, as guarantee server side safety. Providing you write PhP in proper manner.
Either way, try single quotation, depending on SQL server.