The latest station allows just Post requests
Do the same modification for the SQL declaration while the prior to, next alter the past printing() means to demonstrate the thing ID in addition to property value complete :
None of the items might have been noted since done therefore, the property value completed for for every product try 0 , meaning that not true . To let users to evolve this well worth and you may mark factors since the finished, you are going to create a unique path to the brand new file.
The brand new do() examine function takes a keen id disagreement-this is the ID of your own items we want to mark just like the complete. When you look at the setting, you discover a database relationship, then you certainly use an improvement SQL statement to set the value of your own over column to 1 with the item is noted while the done.
Make use of the ? placeholder throughout the perform() means and you may solution good tuple with which has the ID to help you properly type research on databases. Then you certainly commit the transaction and you will romantic the connection and you can reroute towards index page.
Once including an approach to draw issues given that finished, you desire other route to undo this step and you will come back this new goods to help you a non-done position. Continue Reading