I am using Insert statment in JSP code.
statement.executeUpdate("INSERT INTO ADMIN VALUES ('"+lastParam+"','"+databaseinvoer+"','"+phoneParam+"')");
Where datbaseinvoer contains the article that i want to store.
When i use "" or '' within mine article, it does not works. If i put \ before each quote, it does works.
But i dont want to do that each time, How can i do this the easiest way?
statement.executeUpdate("INSERT INTO ADMIN VALUES ('"+lastParam+"','"+databaseinvoer+"','"+phoneParam+"')");
Where datbaseinvoer contains the article that i want to store.
When i use "" or '' within mine article, it does not works. If i put \ before each quote, it does works.
But i dont want to do that each time, How can i do this the easiest way?