The problem what i have:
I have an index.php:
[code]
<?php header('Content-Type: text/html; charset=UTF-8'); require_once($_SERVER['DOCUMENT_ROOT'].'globalfunctions/GlobalParameters.php'); ?>Adatok betöltése folyamatban...
<?php $xml = 'connector.php'; echo' ' ; ?> [/code]Its only define the grid, and call the necesary files and call connetor.php which does the work:
[code]<?php
header(‘Content-Type: text/html; charset=UTF-8’);
error_reporting ( E_ALL ^ E_DEPRECATED);
require_once($_SERVER[‘DOCUMENT_ROOT’].“globalfunctions/globalClasses.php”);
$xml = new SimpleXMLElement(’
Megnevezés
Típus
Hol van
Saját ID
Tipus ID
,#text_filter,#text_filter,#text_filter,
$sorok = array(
array()
);
$sql1 = mysql_query("
select Megnevezes,tipus_nev, Hol_van, akt_hely.ID,tipus from akt_hely inner join tipus on (akt_hely.Tipus=tipus.ID)
//$szid=mysql_fetch_row($sql1);
$i=0;
while ($i<=$numrows)
{
//if($row[3]=""){
if($sorok[$i][2]==""){
$currSor = $xml->addChild(‘row’);
$currSor->addChild(‘cell’,$sorok[$i][0]);
$currSor->addChild(‘cell’,$sorok[$i][0]);
$currSor->addChild(‘cell’,$sorok[$i][1]);
$currSor->addChild(‘cell’,$sorok[$i][2]);
$currSor->addChild(‘cell’,$sorok[$i][3]);
$currSor->addChild(‘cell’,$sorok[$i][4]);}
else{
}
++$i;
//$currSor->addChild('cell',$row[6]);
}
$irattar->Close();
unset($irattar);
echo $xml->asXML();
?>[/code]
And this fill the grid. In this i want to fill the subgrid too.
Pls help!