[Solved] How to pass a C# variable with apostrophe through MySql
The quick and dirty fix is to use something like: level = level.Replace(“‘”,”whatever”); but there are still problems with that. It won’t catch other bad characters and it probably won’t even work for edge cases on the apostrophe. The best…