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

haber ya lo corregi pero ahora todos los links me llevan al mismo archivo

<?php
$strqry2 = "SELECT * FROM anticipo_desglose where numero =".$row["numero"];

$qry2 = mysql_query($strqry2);
mysql_data_seek($qry2,0);
while ($row2 = mysql_fetch_assoc($qry2)){

?>

<tr>
<td width="2%" align="center"><?php print $row2["numero"]; ?></td>
<td width="2%" align="center"><?php print $row2["fecha"]; ?></td>
<td width="1%" align="center"><?php print $row2["tipo"]; ?></td>
<td width="2%" align="center"><a href=menu2.php><?php print $row2["documento"];?></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=menu2.php>"; break;
case "4": echo "<a href=formulario.htm>"; break;
}
?>
<td width="2%" align="center"><?php print $row2["referencia"];?></td>
</tr>
<?php
}
}
?>
</body>
</html>