Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hyperlink a database record

Status
Not open for further replies.

230173

MIS
Jun 22, 2001
208
SG
How do I make a hyperlink from a database record and opening in another session.
 
[tt]A bit more information please as to what you're trying to accomplish...
T ® Ñ ¥
To keep a lamp burning we have to keep puting oil in it.
Progress2.gif

 
to show a recordset of URL's on my page and hyperlink them. But a hyperlink that opens in another browser.
 
Stick this in your page with your own details added.

Code:
<% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%>
<%
strLink=Recordset1.Fields.Item(&quot;book_id&quot;).Value
%>
<a href=&quot;<%=strLink%>&quot;><%=strLink%></a> <br>
<% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset1.MoveNext()
Wend
%>

Cheech [Peace][Pipe]
The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
oops missed the new page bit

Code:
<% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%>
<%
strLink=Recordset1.Fields.Item(&quot;book_id&quot;).Value
%>
<a href=&quot;<%=strLink%>&quot; target=&quot;_blank&quot;><%=strLink%></a> <br>
<% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset1.MoveNext()
Wend
%>

Cheech
[Peace][Pipe]
The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top