rs = Session.db.SelectSQL("SELECT * FROM tableName WHERE columnname = ?, xojoStringVariable)
But I can’t work out how to INSERT 4 strings held as Xojo variables INTO 4 named Columns in a table. Is this possible? And if so what is the syntax? Many thanks if you can help.
Please, do not do this. It is fraught with danger. Literally. Look up SQL Injection. By crafting the values put into the text fields this could do anything from deleting your entire database to giving your attacker copies of everything in there.
SQL Injection is a real threat and does need to be taken seriously
I was saying how does anyone know that these are not variables or properties that are coded and cannot be entered by any user?
The answer to that is don’t take the risk at any time. Otherwise you get to doing one that does matter and are used to doing it a certain way. And then you’re dead.
Indeed, but if you don’t ever point it at your head, or someone else you will be fine. Don’t use an SQL database without prepared statements. It then can’t go wrong.