frozenpeas
Technical User
Hello,
I am updating a record in my db with the following line (using PHP/MySQL):
The trouble spot is the value for 'level'. This can be one of two options, 'limited' or 'full'. For some reason, I can change it from 'limited' to 'full' but not the inverse.
The form bits that are the source of the value are:
Am I missing something obvious or is something strange going on?
Thanks for your help.
frozenpeas
--
Micfo.com Affiliate Program
I am updating a record in my db with the following line (using PHP/MySQL):
Code:
$query = "UPDATE users SET name='$name',level='$level',active='$active' WHERE id='$id'";
The trouble spot is the value for 'level'. This can be one of two options, 'limited' or 'full'. For some reason, I can change it from 'limited' to 'full' but not the inverse.
The form bits that are the source of the value are:
Code:
<input name="level" type="radio" value="limited"<?php if($row['level']=="limited"){echo " checked";}?>>
Code:
<input name="level" type="radio" value="full"<?php if($row['level']=="full"){echo " checked";}?>>
Am I missing something obvious or is something strange going on?
Thanks for your help.
frozenpeas
--
Micfo.com Affiliate Program