Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/02/2010, 08:15
Avatar de vicram10
vicram10
 
Fecha de Ingreso: enero-2009
Ubicación: Asuncion
Mensajes: 326
Antigüedad: 15 años, 3 meses
Puntos: 27
Respuesta: Traer respûesta de BD...

Para tu radio button

Código PHP:
$cons "select * from opciones";
$res mysql_query($cons,$conectar);
while(
$fila mysql_fetch_assoc($res))
{
     
$selected $fila['opcion'];
}

$opciones = array('si' => 'Si quiero',
                
'no' => 'No puedo',);
    foreach (
$opciones as $llave => $opcion) {
      echo 
'<input type="radio" name="opciones_db" value="'$llave .'" '. ($llave == $selected 'checked="checked"' '') .'/>'$opcion .'&nbsp;';

Prueba de esa manera