Código:
if($busca!=""){ $busqueda=mysql_query("SELECT * FROM productos WHERE categoria LIKE '%".$busca."%'")or die(mysql_error()); while($f=mysql_fetch_array($busqueda)){ echo '<div class="product"> <div class="img-box"> <div class="box-frame"> </div> <img src="'.$f['foto'].'" alt="Product Image" /> </div> <div class="pr-entry"> <h4>'.$f['nombre'].'</h4> <span class="pr-number">Product: '.$f['id'].'</span> <p>'.$f['contenido'].'</p> <span class="pr-price"><span>s/.</span>'.$f['precio'].'</span> </div> </div>' ; } }