query results

Post Reply
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

query results

Post 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>
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

query results

Post 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.
Post Reply