
25/04/2007, 12:41
|
| | Fecha de Ingreso: diciembre-2005
Mensajes: 37
Antigüedad: 19 años, 4 meses Puntos: 0 | |
Re: problemac con switch bueno todo mi codigo es el siguiente y segun yo estoy cerrando todas las llaves $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"><?php switch ($row2["tipo"]){ <a href=menu2.php><?php print $row2["documento"]; ?>
case "1": echo "<a href=menu2.php>"<?php print $row2["documento"]; ?>; break;
case "2": echo "<a href=menu2.php>"<?php print $row2["documento"]; ?>; break;
case "3": echo "<a href=menu2.php>"<?php print $row2["documento"]; ?>; break;
} ?> <td width="2%" align="center"><?php print $row2["referencia"];?></td>
</tr>
<?php
}
?>
</body>
</html>
donde esta el error en este codigo |