Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Please, how to solve problems like:
QString a = "macdonald's"; "insert into clients (name) values ('" + a + "')";
this accents <'> is the problem.
Hi,
IIRC you have to double the single quote if you want to insert one in your database field.
Hope it helps
And you might be able to do it with
a.replace("'","''");
So many thanks. It works !