Hello all, i want to update mysql table if i check the checkbox.
I have this code to read if the user is VIP or not.
if ($Row['vip'] == 1)
{
echo '<td style="text-align: center;" width="5%"><input type="checkbox" value="1" checked=checked' . $Row['vip'] . '" name="vip"></td>';
}
else
{
echo '<td style="text-align: center;" width="5%"><input type="checkbox" value="0"' . $Row['vip'] . '" name="vip"></td>';
}
If the user is VIP the checkbox is checked and if is not the checkbox is unchecked.
What i want is if the checkbox is unchecked and if i check it my sql update automaticly.