|
Posted by Troy on 06/18/05 01:37
I'm new to php and can't figure out why this isn't working. I can get either
the "ItemTitle" or the "ItemTitleShort" to work but not both.
the line marked // is what causes the problem, when I include it
"ItemTitleShort" works but not "ItemTitle"
I'm guess that I'm handling variables incorrectly
Thanks in advance
$itemtitle = $rss_parser->ItemTitle[$x];
$item = str_replace("~~~ItemTitle~~~", $itemtitle, $block1);
$itemtitleshort = $itemtitle;
if (strlen($itemtitleshort) > 35) {
$itemtitleshort = substr($itemtitleshort, 0, 35)."...";
}
//* $item = str_replace("~~~ItemTitleShort~~~", $itemtitleshort,
$block1);
[Back to original message]
|