Ver Mensaje Individual
  #7 (permalink)  
Antiguo 18/10/2006, 13:15
jprolando
 
Fecha de Ingreso: agosto-2006
Mensajes: 388
Antigüedad: 17 años, 8 meses
Puntos: 0
hice unos cambios copiando algo que tenia en otro script

Me dio mejores resultados

quedo asi:

Código PHP:
<?
    
include("config.php");
    
$link=conectar_BD();
?>
<html>
<head>
<title>Compras Productos</title>
<LINK href="estilo.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="javascript.js"></SCRIPT>
</head>
<body class="body">
<?

$result
=mysql_query("SELECT * FROM $name_tb[productos]"); 

    if (
$row mysql_fetch_array($result))
    {
        echo 
"<table border=0 cellpadding=0 cellspacing=0> \n";
        
$color='#FFC299';
            do { 
                 echo 

                     <tr bgcolor=\"$color\"> 
                        <td valign='middle'>  
                            <input name='cantidad' type='text' size='5' maxlength='5'> 
                           </td> 
                           <td> 
                            <img src='/ult/fotos/$row[comprar]'> 
                        </td> 
                        <td>  
                            $row[articulo] 
                        </td> 
                          <td> 
                            $$row[p_12] 
                        </td> 
                          <td> 
                            <img src='/ult/fotos/$row[ruta]'> 
                        </td> 
                          <td bgcolor=$color> 
                            <img src='/ult/fotos/$row[foto]'> 
                        </td> 
                          <td bgcolor=$color> 
                            <img src='/ult/fotos/$row[info]'> 
                        </td>                             
                    </tr> 
                    "

                
$color=('#F0F0F0'==$color)?'FFC299':'#F0F0F0';
                } while (
$row mysql_fetch_array($result));
             
               echo 
"</table> \n"
        } else { 
            echo 
"¡ No se ha encontrado ningún registro !"
        }         

    
mysql_free_result($result); 
    
mysql_close($link);  
?>
</body>
</html>
gracias igual por la valiosa ayuda, hasta la proxima