Click to See Complete Forum and Search --> : problem with php code..rss reader any??


amonamon
08-15-2006, 02:26 AM
Heloo

I got php rss feed script...but it dos not work OK there are some <?=

code that makes me problems..basicly in php file there are html tekst and it calls php variable in strange way for me in like this:

part of code:

<?php
if(count($_xml_sources))
{
for($nIndex = 0; $nIndex < count($_xml_sources); $nIndex++)
{
?>
<tr>
<td height="20" width="10" align="left"><input type="checkbox" name="rss[]" value="<?=$nIndex?>"<?=(($_xml_sources[$nIndex]["use"]) ? " checked" : "")?>></td>
<td align="left">&nbsp;<?=$_xml_sources[$nIndex]["url"]?></td>
<td align="right"><a href="index.php?haction=edit&id=<?=$nIndex?>">Edit</a>&nbsp;|&nbsp;<a href="javascript:void(0)" onclick="if(confirm('Are you sure you want to delete this RSS feed?')) document.location='index.php?haction=delete&id=<?=$nIndex?>'; return false">Delete</a></td>
</tr>
<?php
}
?>



so this makes me problems script reports errors on <?= values...

and by the way if someone have good rss feed script I would love love to have it...

regards

bokeh
08-15-2006, 02:59 AM
Change this: <?=(($_xml_sources[$nIndex]["use"]) ? " checked" : "")?>to this:<?php echo(($_xml_sources[$nIndex]["use"]) ? " checked" : "") ?>