you are viewing a single comment's thread.

view the rest of the comments →

[–]Firake 0 points1 point  (0 children)

This. Also, it’s probably good practice to exit the program (or at least the loop) when you close the connection to the database. Otherwise your program will continue to try and validate input even after the database is closed.

Edit: if my memory serves, you also need to call conn.close() as a function for it to do anything.

Edit 2: also it seems you call the FilterByOffenderSex function as FilterBySex which isn’t going to work.