how to export images from php to excel

1

Hello, I already have a file that exports me a table to excel but this table contains images which are not exported. Somebody could help me. I urgently need a solution to solve this problem.

This is my code to export but not the image

<?php 
if(isset($_POST["exportar_datos"])) { 
$filename = "desarrollosnuevos.xls"; header("Content-Type: 
application/vnd.ms-excel"); 
header("Content-Disposition: attachment; filename='$filename'"); 
$show_coloumn = false; 

if(!empty($arreglo)) { 
 foreach($arreglo as $record) { 
if(!$show_coloumn) {
echo implode("<br>", array_keys($record)) . "n"; 
$show_coloumn = true; 
} 
echo implode("<br>", array_values($record)) . "n";  
} 
} 
exit;
} 
?>
    
asked by Edwin Moreno 14.05.2018 в 17:57
source

0 answers