Page 1 of 1

query results

Posted: Mon Jun 04, 2001 5:38 pm
by sourceuno
I'm showing the results of a metamorph query in an HTML table and I need to show next/previous links below the table. The value in my $query variable has bold tags around it. I believe this happens because bold tags are placed around any hit that contains the value in the query variable. But I don't want bold tag in my query variable when I click next since it won't return any results. Here's a sample of my code:

<SQL ROW SKIP=$jump
"select Title,Visited,$$rank r
from mytbl where Title\Body likep $query">
<table>
<TR>
<TD>$Title</TD>
<TD>$Visited</TD>
</TR>
</table>
</SQL>
<!-- the $query variable here contains bold tags -->
<table>
<tr>
<td><A HREF="$url?query=$query&jump=$skipval">Previous</a></td>
<td><A HREF="$url?query=$query&jump=$skipval">Next</a></td>
<tr>
</table>

query results

Posted: Mon Jun 04, 2001 6:13 pm
by mark
I don't see where you're turning on hit markup, but basically, turn it on when needed and back off when not appropriate.