Ver Mensaje Individual
  #6 (permalink)  
Antiguo 24/09/2007, 09:23
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Problemas Al Mostrar Resultados De Una Bd

Tienes muchos errores de sintaxis, pero asi te deberia de funcionar:
Código PHP:
<?
$link
=mysql_connect("localhost""blablabla""blablabla") or die ("No se logro la conexion...");
$db=mysql_select_db("blablabal");


$codigo=mysql_real_escape_string($_GET["descripcion"]); 
if(
$codigo$w=" WHERE descripcion='$codigo'"
$strqry="SELECT CODIGO_FAMASA, DESCRIPCION, PRECIO, FOTO FROM articulos WHERE descripcion LIKE '%$buscar%'"

$qry=mysql_query ($strqry);
$i=mysql_num_rows ($qry);
$row 0;
$r 0;
?>
<table width="90%" border="1" bordercolor="#006600" bgcolor="white">
<?
while($r $i) {
mysql_data_seek ($qry$r);
$row mysql_fetch_object ($qry);
$r++;

?>
<tr>

<td width="6%"><font color="#006699" size="1" face="Arial"><?php print $row->CODIGO_FAMASA;?></font></td>
<td width="34%"><font color="#006699" size="1" face="Arial"><?php print $row->DESCRIPCION?></font></td>
<td width="6%"><font color="#006699" size="1" face="Arial"><?php print $row->PRECIO?></font></td>
<td width="2%"><font color="#006699" size="1" face="Arial"><?php print $row->FOTO?></font></td>

</tr>

<?
}
?>
</table>
<?
mysql_close
($link);
?>
Saludos.