PHP - Insertar imagen en php y se visualize en excel

 
Vista:
sin imagen de perfil
Val: 14
Ha aumentado su posición en 14 puestos en PHP (en relación al último mes)
Gráfica de PHP

Insertar imagen en php y se visualize en excel

Publicado por Benito (11 intervenciones) el 13/05/2019 18:27:52
Hola Buenos dias en mi codigo ya puedo descargar mi tabla en un archivo de excel pero quiero agregarle una imagen pero no me deja alguien me podria ayudar o como puedo agregar tal imagen anexo codigo:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
header('Content-type:application/xls');
header('Content-Disposition: attachment; filename=usuarios.xls');
header("Content-type: text/html;charset=utf-8");
header("Content-type:application/vnd.ms-excel charset=iso-8859-1");
 
 
include_once "base_de_datos.php";
$sentencia = $base_de_datos->query("SELECT * FROM actividades;");
$productos = $sentencia->fetchAll(PDO::FETCH_OBJ);
?>
 
 
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<table border="1">
 
 
     	<tr style="background-color:#2344fd; color:white; font-size:25px; ">
		<th>Personal</th>
          <th>Area</th>
          <th>Id Proyecto</th>
          <th>Fecha</th>
          <th>Lugar</th>
          <th>Actividad</th>
          <th>Tiempo</th>
          <th>Avance</th>
          <th>Actividad</th>
          <th>Tiempo</th>
          <th>Avance</th>
          <th>Actividad</th>
          <th>Tiempo</th>
          <th>Avance</th>
          <th>Otras</th>
          <th>Planificacion </th>
	</tr>
 
		 <?php foreach($productos as $producto){ ?>
				<tr style="background-color: silver; font-size:15px;" >
		  <td><?php echo $producto->personal ?></td>
          <td><?php echo $producto->area ?></td>
          <td><?php echo $producto->idproyecto ?></td>
          <td><?php echo $producto->fecha ?></td>
          <td><?php echo $producto->lugar ?></td>
          <td><?php echo $producto->actividad1 ?></td>
          <td><?php echo $producto->tiempo1 ?></td>
          <td><?php echo $producto->avance1 ?></td>
          <td><?php echo $producto->actividad2 ?></td>
          <td><?php echo $producto->tiempo2 ?></td>
          <td><?php echo $producto->avance2 ?></td>
          <td><?php echo $producto->actividad3 ?></td>
          <td><?php echo $producto->tiempo3 ?></td>
          <td><?php echo $producto->avance3 ?></td>
          <td><?php echo $producto->otras ?></td>
          <td><?php echo $producto->planificacion ?></td>
				</tr>
 
			<?php
		}
 
	?>
</table>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder