![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/02/2003, 10:56
|
![Avatar de payo22](http://static.forosdelweb.com/customavatars/avatar26808_1.gif) | | | Fecha de Ingreso: noviembre-2002 Ubicación: México
Mensajes: 839
Antigüedad: 22 años, 3 meses Puntos: 1 | |
Haber si asi si <HTML>
<HEAD>
<TITLE>Busqueda</TITLE>
</HEAD>
<BODY>
<form>
<h1><div align="center">Visualizacion de los Clientes Encontrados</div></h1>
<br>
<br>
<?
//Mostramos los registros
$conexion = mysql_connect("localhost","root","admin");
mysql_select_db("Informe",$conexion);
$consulta = "SELECT * FROM clientes WHERE nombre = $Buscar";
$busqueda = mysql_query($consulta,$conexion);
echo "<table width='100%' border=1 cellspacing='0' align='center' bordercolor='#000000'>\n";
echo "<tr>
<td bgcolor=#cccccc>
<div align='center'><font color='#000000'>id</font></div>
</td>
<td bgcolor=#cccccc>
<div align='center'><font color='#000000'>Nombre</font></div>
</td>
<td bgcolor=#cccccc>
<div align='center'><font color='#000000'>Apellido</font></div>
</td>
<td bgcolor=#cccccc>
<div align='center'><font color='#000000'>Direccion</font></div>
</td>
<td bgcolor=#cccccc>
<div align='center'><font color='#000000'>telefono</font></div>
</td>
<td bgcolor=#cccccc>
<div align='center'><font color='#000000'>Diagnostico</font></div>
</td>
<td bgcolor=#cccccc>
<div align='center'><font color='#000000'>Precio</font></div>
</td>
<td bgcolor=#cccccc>
<div align='center'><font color='#000000'>Feecha</font></div>
</td>
</tr>\n";
$lista_colores=array('#4682B4','FF7F50');
$num_colores=2;
$indice=0;
while ($row=mysql_fetch_array($busqueda))
{
$color=$lista_colores[$indice % $num_colores];
$indice++;
echo "<tr bgcolor=\"$color\">";
echo "<td bgcolor=\"$color\" align='center'><font color='#000000'>$row[ID]</font></td>";
echo "<td bgcolor=\"$color\" align='center'><font color='#000000'>$row[Nombre]</font></td>";
echo "<td bgcolor=\"$color\" align='center'><font color='#000000'>$row[Apellido]</font></td>";
echo "<td bgcolor=\"$color\" align='center'><font color='#000000'>$row[Direccion]</font></td>";
echo "<td bgcolor=\"$color\" align='center'><font color='#000000'>$row[Telefono]</font></td>";
echo "<td bgcolor=\"$color\" align='center'><font color='#000000'>$row[Diagnostico]</font></td>";
echo "<td bgcolor=\"$color\" align='center'><font color='#000000'>$row[Precio]</font></td>";
echo "<td bgcolor=\"$color\" align='center'><font color='#000000'>$row[Fecha]</font></td>";
echo " </tr>\n";
}
echo "</table>";
?>
</form>
</BODY>
</HTML>
espero asi ya salga pon atencion a lo que dice el Maestro Cluster.
a mi ya me funciono asi espero te funcione igual. |