Forum Moderators: coopster
The part of my code i'm working with is:
if (mysql_num_rows($searchResult) < 1) {
$error[] = "The search term {$searchTerms} yielded no results.";
}else {
$results = array(); // the result array
$i = 1;
while ($row = mysql_fetch_assoc($searchResult)) {
$results[] = "{$row['id']} - {$row['titletext']}<br />";
$i++;
}
What I am trying to do is hyperlink each ID to a page calling the ID. What is that correct syntax so that {$row['id']} would be hyperlinked to the page?