All you have to do is name your form elements with the same table fields of your database
for example, Student table (name,address,phone,email)
I will name my form inputs to the same names of my table
then you pass the post array to the save function