_JEL_
11-25-2003, 07:21 AM
Ok guys i have the following code to pull data from an SQL table and display it as a scrolling marquee.
<html>
<head>
<link rel="stylesheet" type="text/css" href="teststyle.css" />
<title> Scrolling News </title>
</head>
<body>
<%
Set con = Server.CreateObject("ADODB.Connection")
con.Open "DSN=SQL"
SQL = "SELECT * FROM sorce_news ORDER BY publish_date DESC"
set rs = con.execute (sql)
response.write ("<marquee scrollamount=""1"" scrolldelay=""10"" direction=""up"" width=""300"" height=""300"" loop=""continuous"">")
do while (not rs.eof)
response.write ("<p class=""title"">") & rs("news_title")
response.write ("<p class=""text"">") & rs("news_body")
rs.movenext()
loop
response.write ("</marquee>")
con.close
set con = Nothing
%>
</body>
</html>
the problem is that it will only display the "news_title" records or the "news_body" records but not both.
if if include 2 fileds which have a small amount of data in them e.g. "News_Title" and "ID" then there are no problems.
This leads me to believe that it has something to do with the amount of data that can be stored/displayed.
any ideas guys?
<html>
<head>
<link rel="stylesheet" type="text/css" href="teststyle.css" />
<title> Scrolling News </title>
</head>
<body>
<%
Set con = Server.CreateObject("ADODB.Connection")
con.Open "DSN=SQL"
SQL = "SELECT * FROM sorce_news ORDER BY publish_date DESC"
set rs = con.execute (sql)
response.write ("<marquee scrollamount=""1"" scrolldelay=""10"" direction=""up"" width=""300"" height=""300"" loop=""continuous"">")
do while (not rs.eof)
response.write ("<p class=""title"">") & rs("news_title")
response.write ("<p class=""text"">") & rs("news_body")
rs.movenext()
loop
response.write ("</marquee>")
con.close
set con = Nothing
%>
</body>
</html>
the problem is that it will only display the "news_title" records or the "news_body" records but not both.
if if include 2 fileds which have a small amount of data in them e.g. "News_Title" and "ID" then there are no problems.
This leads me to believe that it has something to do with the amount of data that can be stored/displayed.
any ideas guys?