![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/05/2007, 16:14
|
![Avatar de mamicho](http://static.forosdelweb.com/customavatars/avatar182987_1.gif) | | | Fecha de Ingreso: mayo-2007
Mensajes: 98
Antigüedad: 17 años, 8 meses Puntos: 0 | |
ayuda $row hola amigos necesito una ayudita...
Elniveldeloscontenidostratadosleparece es un radio buttons.
cuando agrego dos excelente en echo sale 77 y quiero que salga 14 para poder sacar un promedio despues. gracias
$result = mysql_query("SELECT Elniveldeloscontenidostratadosleparece FROM encuesta");
while ($row=mysql_fetch_array($result)){
$nivel = $row[Elniveldeloscontenidostratadosleparece];
}
if($nivel == 'Exelente'){
$nota1 = 7;
}
else if($nivel == 'Muy Bueno'){
$nota1 = 6;
}
else if($nivel == 'Bueno'){
$nota1 = 5;
}
else if($nivel == 'Regular'){
$nota1 = 4;
}
else if($nivel == 'Malo'){
$nota1 = 2;
}
echo $nota1; |