Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/05/2011, 10:15
marina_mesas
 
Fecha de Ingreso: noviembre-2010
Mensajes: 48
Antigüedad: 13 años, 6 meses
Puntos: 5
De acuerdo Respuesta: Salto de renglon

Cita:
Iniciado por mogurbon Ver Mensaje
hay mas codigo? por que pues a lo mejor esta en un bucle o en algun momento abres un tr , si hay mas codigo seria bueno que lo pusieras
Aca van:

Código PHP:
Ver original
  1. <table width="100%" border="0" cellspacing="0" cellpadding="20">
  2. <?php //Buscador  
  3. if(isset($_POST['buscar']) && !empty($_POST['busca']));
  4. {
  5.     $busca = mysql_real_escape_string($_POST['busca']); // Triby
  6.     $busca=$_POST['busca'];
  7.  
  8.  
  9.         $busqueda = mysql_query("SELECT * FROM tbl_product WHERE pd_description LIKE '%".$busca."%'") or die('Error ejecutando consulta: ' . mysql_error());
  10.         while($f = mysql_fetch_assoc($busqueda)){
  11.             $pd_thumbnail = $f['pd_thumbnail'];
  12.             if (!empty($pd_thumbnail) && $pd_thumbnail != "") {
  13.                 $pd_thumbnail = WEB_ROOT . 'images/product/' . $pd_thumbnail;
  14.             } else {
  15.                 $pd_thumbnail = WEB_ROOT . 'images/no-image-small.png';
  16.             }
  17.             //echo '<pre>';var_dump($f);echo '</pre>'; // Triby
  18.              echo "<td width=\"$columnWidth=\" align=\"left\"><a><img src=\"$pd_thumbnail\" border=\"0\"></a></td>
  19.               <td width=\"$columnWidth%\" align=\"reight\"><a>Descripcion :  ".$f['pd_description']."</a><td><a> Precio : ".$f['pd_price']."</a>";
  20.  
  21.         }    
  22. }
  23. ?>
  24. </table>

Esto seria todo!!