Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot append values from database when writing to a text file  RSS feed

 
khamhielle gabriel
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone

can somebody help me with this,
i've been trying to write some database value to a text file.
by which the valus are selected using checkbox from the
first page.


ex:
[ ]-serves as checkbox

[ ] 1
[ ] 2
[ ] 3
[ ] 4


if i selected or check 1 and 2.
i should be able to print both in the text file. but what happened is i am only printing the last selection w/c is 2.

for added info i was incorporating the checked value in my select.
and i guess i am not closing the streams inside the loop.
because it works fine in my other pages which requires writing text file.


here is my sample code:


thank you for your kind help.
God Bless you ^^


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!