i hav a shopping cart in java he columns of jtable are
code-the item code
qty-the quantity enterd by the user
i want to update the quantity in database .the description of the table is
code -item code
stock-total stock in hand.
i need to to update the quantity by making te total stock lesser(i.e stock-qty) when i click the button finished shopping.
thankyou
angel sunflower 0 Newbie Poster
Recommended Answers
Jump to PostSo, what's the problem you are having?
Jump to PostString sql2="update albums set qty="+quant+"where acode='"+code+"';";
There is no space before
where
.Next time post your error message too.
All 7 Replies
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
angel sunflower 0 Newbie Poster
angel sunflower 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
angel sunflower 0 Newbie Poster
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
angel sunflower 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.