hi there i'm using this code
$resulttags = mysql_query("SELECT * FROM sectags");
while( $rowtags = mysql_fetch_array($resulttags)){
$org = $rowtags['tag'];
$rpc = "<a href='?tag=".$org."'>$org</a>";
$edited = str_replace($org, $rpc, $edited);
}
now the problem is that after it replaces a word with the link it also changes the link because in the link is the original variable that he has to be changed.
anyone know how to resolve this?
thx