XML issue: no output

4 posts by 2 authors in: Forums > CMS Builder
Last Post: May 20, 2010   (RSS)

By s2smedia - May 20, 2010

Ive done xml.php beofre... but cant seem to get this one to work.. heres my code:

<?php header('Content-type: application/xml; charset=utf-8'); ?>
<?php

require_once "XXXXXX/cms/lib/viewer_functions.php";

list($homepageRecords, $homepageMetaData) = getRecords(array(
'tableName' => 'homepage',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$homepageRecord = @$homepageRecords[0]; // get first record


?>

<news>


<new Header="<?php echo $homepageRecord['header_message'] ?>" TextColor="0x536630" TextSize="19" TextBold="true" xPos="100" yPos="25" Effect="scaleY"></new>
</news>
<options>
<setup period ="3" glowColor="33CCFF"></setup>
</options>

Re: [s2smedia] XML issue: no output

By Jason - May 20, 2010

Hi,

Could you describe what seems to be going wrong?

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] XML issue: no output

By s2smedia - May 20, 2010

Nothing displays in the swf... It works fine when I just type in the xml instead of using the php snippets from cms builder