You are here: Need variable help « All PHP « IT news, forums, messages
Need variable help

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);

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация