Posted by matt on 10/04/21 11:22
"Ken LE PRADO" <ken@leprado.com> wrote in message
news:42e52c29$0$3103$8fcfb975@news.wanadoo.fr...
> Hi,
>
> Checkboxes does not return TRUE or FALSE values. Please make an echo of
> your value before saving it.
>
> Do this before record it :
>
> <?php
> if (empty($_REQUEST['Administrator_access_read'])) {
> $read = 'FALSE';
> } else {
> $read = 'TRUE';
> }
> ?>
>
> and after, save it in your DB.
>
> after that, you should get the good values at the SELECT query
>
Interesting point. i did not realize that, however, it is saving to the
database correctly. it saves "TRUE" and "FALSE" values. THe problem is
retrieving this data. It's coming back "read" instead of "TRUE"
[Back to original message]
|