I am using Netbeans and in this method I have som String and int variables that I would like to insert in the MySQL database.
I have tried this, but still it wont work.
String sql = "INSERT INTO cars (Manufacturer, Color, Extra, Country, Price)" "VALUES (variableManufacturer, variableColor, variableExtra, variableCountry, variablePrice)";
Table name Cars
Colummns Manufacturer, Color, Extra, Country, Price
All the colummns are VARCHAR, except Price, it is an int.
Netbeans crashes, and it says that it cannot find variables. Anyone?