Hey. Anybody could help with checkboxes? What I'm trying to do is to store it's value into database.
This is my code that is actually not working because it fails at try catch block and shows error (exception $e).
Index.php: https://pastebin.com/cYDdm9Jz
Process.php: https://pastebin.com/Kr2Lxf64
Config.php: https://pastebin.com/QtjvYcD5
This is working code that I've found on the net. It stores text and checkbox values perfectly.
Code.php: https://pastebin.com/mPuEGHfT
Index.php: https://pastebin.com/JM8rWE2t
Is there a way to adapt one code to another? I've tried few times but it just saves nothing at database. Please help.