![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/07/2007, 14:36
|
![Avatar de acousticgerman](http://static.forosdelweb.com/customavatars/avatar62141_1.gif) | | | Fecha de Ingreso: abril-2004 Ubicación: Merlo, buenos aires
Mensajes: 364
Antigüedad: 20 años, 9 meses Puntos: 1 | |
Re: Busqueda Por Codigo En Base De Datos Acà està el codigo, lo que necesito es que cuando el usuario ingrese el còdigo que ya conoce le aparezca la descripciòn, codigo original y precio tambien. GRACIASSSSSS DE NUEVO
<?php
$link=mysql_connect("localhost", "ccccccccc", "cccccccccc") or die ("No se logro la conexion...");
$db=mysql_select_db("88776655_dfdfdfdf");
$strqry="SELECT * FROM articulos";
$qry=mysql_query ($strqry);
$i=mysql_num_rows ($qry);
$row = 0;
$r = 0;
while($r < $i) {
mysql_data_seek ($qry, $r);
$row = mysql_fetch_object ($qry);
$r++;
?>
<center>
<!--CODIGO HTML PARA CREAR LA TABLA QUE CONTIENE LOS PRODUCTOS-->
<table width="65%" border="1" bordercolor="#006600" bgcolor="#ffffff">
<tr>
<td width="10%"><font color="#006699" size="2" face="Arial"><?php print $row->CODIGO; ?></font></td>
<td width="30%"><font color="#006699" size="2" face="Arial"><?php print $row->DESCRIPCION; ?></font></td>
<td width="15%"><font color="#006699" size="2" face="Arial"><?php print $row->ORIGINAL; ?></font></td>
<td width="15%"><font color="#006699" size="2" face="Arial"><?php print $row->PRECIO; ?></font></td>
</tr>
</table>
</center>
<?php
}
?>
<?php
mysql_close($link);
?>
__________________ "Life goes on..." |