ragazzi scusate in questa pagina dove sbaglio?
Codice PHP:
<?php
include("config.inc.php");
//DELETE CONTENT
$var1=fopen("adlsearch.xml","w+");
//OPEN FILE
$var=fopen("adlsearch.xml","a+");
fwrite($var, '<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ADLSearch>
<SearchGroup>
');
$result2 = $db->sql_query("SELECT min_filesize,max_filesize,source_type, TTH,size_type FROM XML");
while ($row2 = $db->sql_fetchrow($result2)) {
$cidtth=$row2['TTH'];
$cidminsize=$row2['min_filesize']
$cidmaxsize=$row2['max_filesize']
$cidsource=$row2['source_type']
$cidsize=$row2['size_type]
//XML
fwrite($var, " <Search>
<SearchString type="string">$cidtth </SearchString>
<SourceType type="string">$cidsource</SourceType>
<DestDirectory type="string">Forbidden TTHS</DestDirectory>
<IsActive type="int">1</IsActive>
<IsForbidden type="int">1</IsForbidden>
<IsRegExp type="int">0</IsRegExp>
<Raw type="int">2048845815</Raw>
<KickString type="string"/>
<FromFavs type="int">1</FromFavs>
<AdlsPriority type="int">255</AdlsPriority>
<MaxSize type="int64">$cidmaxsize</MaxSize>
<MinSize type="int64">$cidminsize</MinSize>
<SizeType type="string">$cidsize</SizeType>
<IsAutoQueue type="int">0</IsAutoQueue>
<AdlsComment type="string">messaggio</AdlsComment>
<IsCaseSensitive type="int">1</IsCaseSensitive>
</Search>
");
}
}
// FOOTER XML
fwrite($var, "</SearchGroup>
</ADLSearch>
");
?>
questa dovrebbe prendere i campi dalla tabella fare un array e inserirli dove dico io e ripetere tutto quello compreso nel serach finchè non finiscono i record ma mi da errore -_-
Parse error: syntax error, unexpected T_VARIABLE in /web/htdocs/www.itamaster.com/home/inserimentotth/adlsearch.php on line 24
ecco l'errore