I have a Mysql table that contains a column (Type=tinyint) which is used as boolean. I currently have a form which queries the database and returns back several text fields for each record. Each record also has the above mentioned field for 'Supervisor Approval'.
What syntax is needed to allow the user(supervisor) to 'Check' the checkbox and write the checkbox value to the database. In this case the value would be '-1' meaning 'yes'.
Likewise, if a record is pulled from the database that has already been approved, value = -1, how do I make the checkbox on the form actually be checked.
Any help is appreciated and let me know if further information is needed or code snippets.
Thanks
What syntax is needed to allow the user(supervisor) to 'Check' the checkbox and write the checkbox value to the database. In this case the value would be '-1' meaning 'yes'.
Likewise, if a record is pulled from the database that has already been approved, value = -1, how do I make the checkbox on the form actually be checked.
Any help is appreciated and let me know if further information is needed or code snippets.
Thanks