Rewrite a line of code to make link
Putting a link code:
<a href="mypage.php?id=35">text</a>
Shows up as text in the description line...it doesn't recognize it as html code.
So, I'm trying to rewrite line 56 - 61 in index.php to take out the relationship link (I don't need the lightbox) and then to make the description field as the page link url.
WHAT AM I DOING WRONG?
-------------------OLD CODE--------------------
<?php
$random = rand(0, 10000);
for($i = 0; $i < sizeof($gallery['images']); $i++) {
echo '<a href="' . $gallery['images'][$i]['fullsize']['url'] . '" rel="lightbox-pg' . $random . '" name="<strong>' . str_replace('"', '\"', $gallery['images'][$i]['title']) . (strlen($gallery['images'][$i]['title']) > 0 ? ':' : '') . '</strong> ' . str_replace('"', '\"', $gallery['images'][$i]['description']) . '"><img alt="" title="' . $i . '##' . str_replace('"', '\"', $gallery['images'][$i]['title']) . '##' . str_replace('"', '\"', $gallery['images'][$i]['description']) . '" src="' . $gallery['images'][$i]['thumb']['url'] . '" width="62" height="62" /></a>';
}
?>
-------------------POSSIBLE NEW CODE--------------------
<?php
$random = rand(0, 10000);
for($i = 0; $i < sizeof($gallery['images']); $i++) {
echo '<a href="' . $gallery['images'][$i]['description'] . '" name="<strong>' . str_replace('"', '\"', $gallery['images'][$i]['title']) . (strlen($gallery['images'][$i]['title']) > 0 ? ':' : '') . '</strong> ' . str_replace('"', '\"', $gallery['images'][$i]['description']) . '"><img alt="" title="' . $i . '##' . str_replace('"', '\"', $gallery['images'][$i]['title']) . '##' . str_replace('"', '\"', $gallery['images'][$i]['description']) . '" src="' . $gallery['images'][$i]['thumb']['url'] . '" width="62" height="62" /></a>';
}
?>