Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/07/2009, 11:15
Avatar de ajstyleprogramming
ajstyleprogramming
 
Fecha de Ingreso: enero-2009
Mensajes: 43
Antigüedad: 15 años, 3 meses
Puntos: 0
Respuesta: metodos de ordenamiento en php?????

este es un ejemplop de una lista enlazada

foreach($xml->item as $item)
{
//if ($item->marca==$marca)
//{
if($item->moneda==1)
{
$moneda="Pesos";
}
if($item->moneda==2)
{
$moneda="USD";
}
$neto=($item->precio *1.15)/0.78;
$neto2=number_format($neto,2);

echo '<table width="1000" border="1" bordercolor="#0264B5" align="center" class="ptabla" >
<tr><td width="80"><a href="Detalle_producto.php?cve=',$item->clave,'&Archivo=',$Archivo,'">',$item->clave,'(ficha tecnica)</a></td>
<td width="150">',$item->codigo_fabricante,'</td>
<td width="300">',utf8_decode($item->descripcion),'</td>
<td width="150">',$item->grupo,'</td>
<td width="150">',$item->marca,'</td>
<td width="70">',$neto2,'</td>
<td width="100">',$item->moneda,'</td></tr>
</table>';
espero que quede claro el concepto