// dit incrementen
$n = 1;
if($_POST['Submit']) {
if(!$_POST['id']) {
echo "<script languge='javascript'> alert('Vul AUB ProgrammaID in!');</script>";
exit;
}
$begin = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<adFeed adFeedVersion=\"1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"adfeeds1.xsd\">
<program programId=\"".$_POST['id']."\">";
## QUERY 1 TEXTLINKS!
$query1 = mysql_query("SELECT * FROM text WHERE soort = '1'") or
die("Textlink query werkt niet");
$string = "\n<text geId=\"\" geDelete=\"no\">
<generalSettings>
<title><![CDATA[".$record1['title']."]]></title>
<productUrl><![CDATA[".$record1['producturl']."]]></productUrl>
<productDescription><![CDATA[".$record1['description']."]]></productDescription>
<categories>
<category>
<categoryId>".$record1['catid']."</categoryId>
</category>
</categories>
<segments>
<segment>
<segmentId>".$record1['segementid']."</segmentId>
</segment>
</segments>
<keywords>
<keyword><![CDATA[".$record1['title']."]]></keyword>
</keywords>
</generalSettings>
<textLink><![CDATA[".$record1['textlink']."]]></textLink>
</text>";
// increment
$n++;
if($n == 100 || $n==200 || $n==300 || $n==400 || $n==500 || $n==600 || $n==700 || $n==800 || $n==900 || $n==1000 || $n==1100 || $n==1200) {
// HIER moet next komen maar hoe??????????
}
}
## QUERY 2 FLASH BANNERS
$query2 = mysql_query("SELECT * FROM text WHERE soort = '2'") or
die("Flash query werkt niet");
$string1 = "\n<flash geId=\" geDelete=\"no\">
<generalSettings>
<title><![CDATA[".$record2['title']."]]></title>
<productUrl><![CDATA[".$record2['producturl']."]]></productUrl>
<productDescription><![CDATA[".$record2['description']."]]></productDescription>
<categories>
<category>
<categoryId>".$record2['catid']."</categoryId>
</category>
</categories>
<segments>
<segment>
<segmentId>".$record2['segementid']."</segmentId>
</segment>
</segments>
</generalSettings>
<flashVersion>".$record2['flashversion']."</flashVersion>
<flashWidth>".$record2['width']."</flashWidth>
<flashHeight>".$record2['height']."</flashHeight>
<flashUrl>".$record2['flashurl']."</flashUrl>
<flashBackupUrl>".$record2['flashbackup']."</flashBackupUrl>
<flashWindowMode>Window</flashWindowMode>
<flashSupportsPopunder>yes</flashSupportsPopunder>
<flashSupportsPopup>yes</flashSupportsPopup>
<flashSupportsIframe>yes</flashSupportsIframe>
<flashSupportsJavascript>yes</flashSupportsJavascript>
<flashDynamic>no</flashDynamic>
</flash>";
// increment
$n++;
if($n == 100 || $n==200 || $n==300 || $n==400 || $n==500 || $n==600 || $n==700 || $n==800 || $n==900 || $n==1000 || $n==1100 || $n==1200) {
// HIER moet next komen maar hoe??????????
}
}
## QUERY 3 IMAGE BANNERS
$query3 = mysql_query("SELECT * FROM text WHERE soort = '3'") or
die("IMG query werkt niet");
$string2 = "\n<image geId=\"\" geDelete=\"no\">
<generalSettings>
<title><![CDATA[".$record3['title']."]]></title>
<productUrl><![CDATA[".$record3['producturl']."]]></productUrl>
<productDescription><![CDATA[".$record3['description']."]]></productDescription>
<categories>
<category>
<categoryId>".$record3['catid']."</categoryId>
</category>
</categories>
<segments>
<segment>
<segmentId>".$record3['segementid']."</segmentId>
</segment>
</segments>
<keywords>
<keyword><![CDATA[".$record3['title']."]]></keyword>
</keywords>
</generalSettings>
<imageWidth>".$record3['width']."</imageWidth>
<imageHeight>".$record3['height']."</imageHeight>
<imageUrl>".$record3['imageurl']."</imageUrl>
<imageSupportsPopunder>yes</imageSupportsPopunder>
<imageSupportsPopup>yes</imageSupportsPopup>
<imageSupportsIframe>yes</imageSupportsIframe>
<imageSupportsJavascript>yes</imageSupportsJavascript>
</image>";
// increment
$n++;
if($n == 100 || $n==200 || $n==300 || $n==400 || $n==500 || $n==600 || $n==700 || $n==800 || $n==900 || $n==1000 || $n==1100 || $n==1200) {
// HIER moet next komen maar hoe??????????
}
}
}