Quote:
|
Originally Posted by raptrex
PHP Code:
if ($feed->get_feed_link()) echo "<a href=\"javascript:hideshow(document.getElementById('adiv'))\">" echo $feed->get_feed_title(); if ($feed->get_feed_link()) echo '</a>'; ?>
|
You can only have one echo per statement:
PHP Code:
$feed_title = $feed->get_feed_title();
if($feed->get_feed_link()) {
echo "<a href=\"javascript:hideshow(document.getElementById('adiv'))\">$feed_title</a>";
I'm not sure what you are trying to do there... Why do you have an if statement to echo "</a>"??
Anyways, you can see what I did there... You were using echo twice, but you can only use it once per line.
Last edited by jim.thornton; 07-06-2006 at 10:39 PM..
|