code prepending url to link

HBK

New Member
My PHP is prepending the pages URL into my link for some reason.Links that should have a value of \[code\]#\[/code\] come out as \[code\]mysite.com/url_the_page/page.php#\[/code\] and idea what would cause this?\[code\]echo'<a href="http://stackoverflow.com/questions/3696899/#" id="bb">click me</a></span>';echo '<a href="http://stackoverflow.com/questions/3696899/#" id="song_'. $row[id].'">';echo $artist_title;echo '</a></span>';`\[/code\]Full code:\[code\]while ($row = mysql_fetch_array($query)) { if ($row[sourcefile] !== NULL ) { echo ''; if ( $row[artist] !== NULL && $row[title] !== NULL) { $artist_title = $row[artist] . ' - ' . $row[title]; } else { $artist_title = $row[originalfilename]; } echo "<a href=http://".$row[link].' target="_blank">LINK</a> - '; if ( $row[listened] == 0) { $link_class = "unlistened"; } else { $link_class = "listened"; } $size = $row[size]; $size = round(($size / 1000000),2); if ( $size > 30 ) { echo '<font color="red">MIX </font>'; } echo '<span id="'.$row[id].'" class="'.$link_class.'">'; echo '<a href="http://stackoverflow.com/questions/3696899/#" id="song_'. $row[id].'">'; echo $artist_title; echo '</a></span>'; echo ' - '; //turn size into MB $size = $row[size]; $size = round(($size / 1000000),2); //if the song is smaller than a certain size display the size as red. if ( $row[size] < 1500000) { echo '<font color="red">'; echo $size; echo '</font>'; } else { //echo $row[size]; echo $size; } echo 'MB<br>'; } }\[/code\]
 
Back
Top