Hi,
I hope I'm getting to the point this time. So what you want is to check one of the radio buttons according to the vaule in $row['radio'] ?
I noticed that you used $row['radio'] in your if ... else ... if ... else ... statement but $row['c1'] $row['c2'] and so on in your for loop.
Try this one:
First initialize all variables:
for ($i=1;$i<=30;$i++) {
${"checked".$i} = "";
}
Then just set the checked variable referred by the field value:
${"checked".$row['radio']} = "checked";
Do you have hmtl code like this ?
<input type="radio" ..... <?PHP echo $checked1; ?>>
<input type="radio" ..... <?PHP echo $checked2; ?>>
....
Hope I'm right this time ?