Why this code ?
Code:
if($radio == 0) { echo 'Radio 0'; }
elseif($radio == 1) { echo 'Radio 1'; }
elseif($radio == 2) { echo 'Radio 2'; }
its useless :P you can better use
Code:
echo 'Radio'.$radio;
Also i dont know if youre asking for how to make the choice of radio but if so then you can easely make it with submit buttons here i made something you may find usefull :p just put the html in tpl or whatever you use :P you also can change the buttons to radio buttons so it looks better :D
Code:
<?php
if(isset($_POST['radio'])) {
$channels = array(1, 2);
if(in_array($_POST['radio'], $channels)) {
mysql_query("UPDATE users SET radio = '"$_POST['radio']"' WHERE id = '"$id"' ");
echo 'Channel has been changed succesfully to'.$_POST['radio'];
} else
exit('This is not an channel!');
}
?>
<html>
<form method="POST" action="">
<input type="submit" name="radio" value="1">
<input type="submit" name="radio" value="2">
</form>
</html>