Kod
<?php
header("Content-type: application/vnd.ms-excel");
require_once('../includes/conf.php');
require_once('../includes/mysql.php');
require_once('../includes/users.php');
require_once('../includes/funkcje.php');
$naglowki = array('KAM', 'PH', 'idBH',
'PHPH', 'DSA', 'KSA', );
$result = mysql_query("SELECT a.pos_id, s.tp_id_partnera, p.tp_id_partnera
FROM akt_licz_bh a
INNER JOIN
smp_10_11 s ON s.tp_id_partnera = a.pos_id
INNER JOIN _pki_015_10_11 p ON s.tp_id_partnera = a.pos_id
WHERE s.NUMER_ZAMOWIENIA LIKE 'TEL000040293255'
;");
header("Content-type: application/vnd.ms-excel");
require_once('../includes/conf.php');
require_once('../includes/mysql.php');
require_once('../includes/users.php');
require_once('../includes/funkcje.php');
$naglowki = array('KAM', 'PH', 'idBH',
'PHPH', 'DSA', 'KSA', );
$result = mysql_query("SELECT a.pos_id, s.tp_id_partnera, p.tp_id_partnera
FROM akt_licz_bh a
INNER JOIN
smp_10_11 s ON s.tp_id_partnera = a.pos_id
INNER JOIN _pki_015_10_11 p ON s.tp_id_partnera = a.pos_id
WHERE s.NUMER_ZAMOWIENIA LIKE 'TEL000040293255'
;");