Hola ya he modificado eso y funciona muy bien pero te agradeceria si me puedes decir poruqe la barra de porcentaje no se queda al lado del % te dejo el codigo modificado:
Código PHP:
// IMPRIMIR LOS RESULTADOS.
$html_encuesta.='<form action="'.$_SERVER[REQUEST_URI].'" method="POST">';
$html_encuesta.= '<font color="#666666" face="tahoma" size="2"><strong>'.$pregunta_de_la_encuesta.'</strong></font><br>';
$html_encuesta.='<br>';
foreach($opciones_de_la_encuesta as $KEY => $OPCION){
$ssql=mysql_query('SELECT * FROM encuesta_blt WHERE id_encuesta="'.$id_ENCUESTA.'" and id_opcion="'.$KEY.'"')or die(mysql_error());
$votos_x_opcion=mysql_num_rows($ssql);
$estimar_porcentaje= @round($votos_x_opcion*100/$total_votos,0);
$html_encuesta.= '<input name="opcion" type="radio" value="'.$KEY.'"';
if($_POST[opcion]==$KEY && isset($_POST[opcion])){$html_encuesta.='checked'; }
$html_encuesta.= '><div style="display: inline;">'.$OPCION.' '.$estimar_porcentaje.' % <strong> <div style="width: 50px;"><div style="background-color:#1D59C9; font-size: 5px; width:'.$estimar_porcentaje.'%;"></div></div></div></strong> <br>';
}
$html_encuesta.='<br><input type="submit" value="Votar">';
$html_encuesta.='</form>';
return $html_encuesta;
}
?>
http://www.antera-solutions.com/encuesta/
Un saludo