HI all,

I have this snippet of code:
PHP Code:
<P>Visible:<BR>
<input type=radio name="visible" value="Y" <?php if ($visible == Y) {
 echo(
"CHECKED");

} else {
 echo(
"");
}
?>>Yes&nbsp;<input type=radio name="visible" value="N" <?php if ($visible == N) {

 echo(
"CHECKED");

} else {

 echo(
"");

}
?>>No</P>
This is part of a larger script that connects to the database and a certain table. Then, I have the above code. You can probably figure out what it's supposed to do.

I'm not getting errors, but it is not printing CHECKED at all. I'm positive that the database has this registered (as opposed to being an empty field.)

Any help is greatly appreciated.

-Corbb