Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/01/2007, 15:59
Avatar de BLAH !!
BLAH !!
 
Fecha de Ingreso: septiembre-2003
Ubicación: Región Metropolitana, Santiago, Chile
Mensajes: 706
Antigüedad: 20 años, 7 meses
Puntos: 16
De acuerdo Re: optimizar búsqueda en Base de datos

Quiero mostrar algo así en el resultado de la búsqueda.

Código PHP:
$qry "SELECT id, titulo, cliente, fecha, RUN, html FROM archivos";
$res mysql_query($qry);

while(
$fila mysql_fetch_array($res))
{
print 
"<b>Factura Nº:</b> &nbsp; &nbsp;$fila[titulo]
<br>
<b>Cliente:</b> &nbsp; &nbsp; &nbsp; &nbsp; $fila[cliente]
<br>
<b>RUT:</b> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$fila[RUN]
<br>
<b>Fecha:</b> &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; $fila[fecha]
<form OnSubmit=\"return borrar()\" name='listas' action='borrar_archivo.php?id=$fila[id]' method='POST'>
 <input type='hidden' name='nfact' value='$fila[titulo]'>
 <input type='button' name='ver' value='Ver Archivo' OnClick=\"javascript: top.window.self.location.href='descargar_archivo.php?id=$fila[id]'\" style='color: #003366; background-color: #FFFFFF; font-family:verdana; font_size:xx-small'>&nbsp; &nbsp; 
 <input type='submit' name='delete' value='Borrar Archivo' style='color: #003366; background-color: #FFFFFF; font-family:verdana; font_size:xx-small'>
</form>
<br>
<br>"
;

__________________
Adios ...!!!!