I'm working on a class assignment and can't get help anywhere, that Java API doesn't have waht i need, and really it's probably a syntatical error, i don't know what i'm doing wrong. I have to put a boolean into a access DB, should be simple, but i get a variety of answers depending on how i word things. here's my code, or at least teh parts relating to this:
If i don't make the boolean a Boolean (class) then i get an incompatiable type error, which is weird item #1. If i make it a class i get this:
WTH is going on here?
boolean status = Boolean.valueOf(request.getParameter("lstStatus"));
String mySQL = "INSERT INTO inventory (PID, ProductName, Quantity, CheckedOut) VALUES (" + productID + ", '" + productName + "', " + quantity + ", " + status + "')";
If i don't make the boolean a Boolean (class) then i get an incompatiable type error, which is weird item #1. If i make it a class i get this:
javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in string in query expression 'false')'.
WTH is going on here?