Ver Mensaje Individual
  #12 (permalink)  
Antiguo 26/04/2007, 11:25
miguel2003
 
Fecha de Ingreso: diciembre-2005
Mensajes: 37
Antigüedad: 18 años, 4 meses
Puntos: 0
Re: problemac con switch

oye en lo anterior queme respondes por que pones <?php print $row2["documento"];?></a></td> al final, yo lo puse asi


<td width="1%" align="center"><?php print $row2["tipo"]; ?></td>
<td width="2%" align="center"><a href="menu2.php"><?php print $row2["documento"]; ?></a></td>
<?php
switch ($row2["tipo"]) {
case "0": echo '<a href="menu2.php">';break;
case "2": echo '<a href="formulario.htm">';break;
case "3": echo '<a href="formulario.htm">';break;
case "4": echo '<a href="formulario.htm">';break;
}
?>
<td width="2%" align="center"><?php print $row2["referencia"];?></td>
</tr>
<?php
}
}
?>

oye y qeu tanto me ayudara un header