minhas4all
09-07-2005, 09:10 AM
hello
i am newbie not only to this forum but also to ASP
i mean now trying to learn
i make a database table for news with field newsid , newsheadline and newdetails now i want to put the headline scrolling as marquee on page whcih is ok and doing well the code is
<%
Dim conn
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog = medicalrecords; User Id = sa; Password="
set rs = Server.CreateObject("ADODB.recordset")
rs.Open "SELECT newid, newsheadline FROM marqlink ", conn
%>
<table width="558" border="1" align="center">
<tr><td width="548">
<marquee onMouseOver="this.stop()" onMouseOut="this.start()">
<% Do While Not rs.EOF
Response.Write "<a href=""dispmdett.asp.id=" & rs(0) & """>" & rs(1) & "</a> "
rs.MoveNext
Loop %>
'<input name="h1" type="hidden" value="<%'request.querystring("link_id")%>">
<% rs.close
conn.close%>
</marquee></td></tr></table>
but i did not know how to make the page for news details and when ever i clik on link it take me to the specific news details
waiting for your reply
thanks in advace
i am newbie not only to this forum but also to ASP
i mean now trying to learn
i make a database table for news with field newsid , newsheadline and newdetails now i want to put the headline scrolling as marquee on page whcih is ok and doing well the code is
<%
Dim conn
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog = medicalrecords; User Id = sa; Password="
set rs = Server.CreateObject("ADODB.recordset")
rs.Open "SELECT newid, newsheadline FROM marqlink ", conn
%>
<table width="558" border="1" align="center">
<tr><td width="548">
<marquee onMouseOver="this.stop()" onMouseOut="this.start()">
<% Do While Not rs.EOF
Response.Write "<a href=""dispmdett.asp.id=" & rs(0) & """>" & rs(1) & "</a> "
rs.MoveNext
Loop %>
'<input name="h1" type="hidden" value="<%'request.querystring("link_id")%>">
<% rs.close
conn.close%>
</marquee></td></tr></table>
but i did not know how to make the page for news details and when ever i clik on link it take me to the specific news details
waiting for your reply
thanks in advace