Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 387

MySQL PYTHON database (no replies)

$
0
0
Hi,

I have basically created a variable for a checkbox which is currently set to 1 and when my form is submitted to the database, the database automattically enters the value 1. what i want to have it do instead is check if the checkbox has been checked, if it has, enter the value 1, if not, enter 0.

The variable I am using is simply: check_var = 0

How is this done?

Thanks

Viewing all articles
Browse latest Browse all 387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>