Hi all,
I'm trying to display a variable as a hyperlink, after it has been edited by str_replace.
Here is my code:
foreach($article as $item)
{
?>
<AHREF="<?php $test=str_replace("articles","printerfriendlynews.php?newsid=",$article->link) ?> Title</a><br>
<?PHP
}
?>
When I try and display this script, it says article is an undefined variable. How will I solve this problem?
Cheers,