Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/04/2006, 13:22
frijolerou
 
Fecha de Ingreso: diciembre-2003
Mensajes: 1.583
Antigüedad: 20 años, 3 meses
Puntos: 13
Código PHP:

function Algo(){
  
$output "";

  while(
$row mysql_fetch_array($result)){
    
$output.= "<td class=caract width=33%>$row[CPU]<br /> $row[RAM]< td>";

    if(
$row[ID] % == 0){
      
$output.= "</tr><tr>"
    }
  }

  return 
$output;
}

$mivariable algo(); 
Y después cuando necesites imprimir el contenido de $mivariable le haces un echo $mivariable;
__________________
El conocimiento es libre: Movimiento por la Devolución