I have a problem with my code here. In my database
idnumber | firstname | middlename | lastname | gender | username | password | usertype
1001 qwe qwe qwe Male admin admin Admin
1002 abc abc abc Male user user User
When i try to register that data again, the app force closes. But i have an If statement saying it will show a toastmessage if it exist already. Is there a missing code here or is there something wrong with my query?
idnumber | firstname | middlename | lastname | gender | username | password | usertype
1001 qwe qwe qwe Male admin admin Admin
1002 abc abc abc Male user user User
When i try to register that data again, the app force closes. But i have an If statement saying it will show a toastmessage if it exist already. Is there a missing code here or is there something wrong with my query?