Hey Guys,
I have a crazy situation that I cannot figure out:
I have this string:
$description = "<a href='".$link."'><img src='".$image."' border=0 ></a>".$description;
and sometimes the printout looks like this:
<a href='http://www.domain.com'><img src='http://www.domain.com/image.jpg' border=0 ></a> Other Text
and other times it looks like this.
<a href=''><img src='' border=0 ></a> Other Text
I would think that something is happening to my variables, but if I do the following:
$description = $link."<a href='".$link."'><img src='".$image."' border=0 ></a>".$description;
then it outputs the $link variable in front of the html 100% of the time:
http://www.domain.com<a href=''><img src='' border=0 ></a> Other Text
What is going on!?
--- SOLVED ---
I had parsing scripts that were misbehaving removing the links. The solution should of been intuitive but I thought the string was not being ran through any other functions. too many LOC. Thanks for the support! For those of you who stumble upon this check your parsing functions!