Ver Mensaje Individual
  #7 (permalink)  
Antiguo 23/04/2013, 12:01
vjrosk
 
Fecha de Ingreso: diciembre-2010
Mensajes: 35
Antigüedad: 13 años, 4 meses
Puntos: 0
Respuesta: Consulta codigo html + funcion php dentro de variable... es posible?

Mira puse asi:

Código PHP:
Ver original
  1. if (!empty($_POST["dirper"])){
  2.  $contotal.='<td>'.muestra($fila[cod_dato]).'</td>';
  3.  $titulo.="<th> DIRECCION PARTICULAR </th>";
  4.  }
  5.  
  6. header("Content-type: application/vnd.ms-excel");
  7. header("Content-Disposition:  filename=Autoridades_".date('d-m-Y_His').".xls");
  8.    
  9. echo "<table border=1>";
  10. echo $titulo;
  11.     foreach($datos as $fila){              
  12.         echo "<tr><td>$fila[apellidos]</td><td>$fila[nombres]</td>".$contotal."</tr>";
  13.                        
  14.         }
  15.         echo "</table>";                   
  16.         exit();

y sigue sin funcionar...