
01/02/2002, 08:37
|
| | Fecha de Ingreso: enero-2002
Mensajes: 110
Antigüedad: 23 años, 1 mes Puntos: 0 | |
Re: Mismo link a diferentes script <pre> <html>
<body>
<?php
$db=mysql_connect("localhost","root ","");
mysql_select_db("empresa",$db);
$sql="SELECT * FROM personal";
$result=mysql_query($sql);
if ($myrow=mysql_fetch_array($result)){
echo "<font size=4 color=red face=arial><b>VISITAS DE LABORATORIOS:</b></font><br><br>\n";
echo "<table border=0 cellpadding=3 cellspacing=0 width=80%>\n";
echo "<tr><td bgcolor='#657085' width='10%'><center><font color='white'><b>ENERO</b></font></center></td><td width='80%' bgcolor='#657085'></td></tr></table><br>\n";
echo "<table border=0 cellpadding=3 cellspacing=0 width=80%>\n";
echo "<table border=0 cellpadding=3 cellspacing=0 width=80%>\n";
echo "<tr><td bgcolor='#657085' width='10%'><center><font color='white'><b>DÍA</b></font></center></td><td bgcolor='#BCC1CD' width='20%'><b>VISITA 1</b></td><td width='20%' bgcolor='#FFF7D7'><b>VISITA 2</b></td><td bgcolor='#BCC1CD' width='20%'><b>VISITA 3</b></td><td width='20%' bgcolor='#FFF7D7'><b>VISITA 4</b></td></tr></table><br>\n";
echo "<table border=0 cellpadding=3 cellspacing=0 width=80%>\n";
do
{
echo "<tr><td bgcolor='#657085' width='10%'><center><font color='white'><b>".$myrow["fecha"]."</b></font></center></td><td bgcolor='#BCC1CD' width='20%'>".$myrow["nombre_1"]."</td><td width='20%' bgcolor='#FFF7D7'>".$myrow["nombre_2"]."</td><td bgcolor='#BCC1CD' width='20%'>".$myrow["nombre_3"]."</td><td width='20%' bgcolor='#FFF7D7'>".$myrow["nombre_4"]."</td></tr>\n";
echo "<tr><td bgcolor='#657085' width='10%' width='20%'></td><td bgcolor='#BCC1CD' width='20%'>".$myrow["laboratorio"]."</td><td width='20%' bgcolor='#FFF7D7'>".$myrow["laboratorio_2"]."</td><td bgcolor='#BCC1CD' width='20%'>".$myrow["laboratorio_3"]."</td><td width='20%' bgcolor='#FFF7D7'>".$myrow["laboratorio_4"]."</td></tr>\n";
echo "<tr><td bgcolor='white'colspan=4 width='100%'></td></tr>\n";
}
while($myrow=mysql_fetch_array($result));
echo "</table>\n";
}
else {
echo "No Se Encontraron Resultados Para La Busqueda!\n";
}
?>
<br>
<br>
<font size=4 color=black face=arial><b>ADMINISTRAR BASE DE DATOS.</b></font>
<br>
1. <a href="administra.html">INTRODUCIR NUEVOS DATOS.</a><br>
2. <a href="datos.php">VER VISITAS.</a>
<br>
</body>
</html> </pre> |