Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

khamhielle gabriel
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.

[ ]-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 ^^

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!