Wrong results displayed (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


SpecialBlend -> Wrong results displayed (4/21/2002 18:07:24)

Don't remember if I posted this already or not, but I've setup my database, and I've linked it to my pages. Only problem is it doesn't seem to be going to the database that I linked.

For instance one of my tables in my database has 11 entries in it, but the page that the database is linked to shows 22 entries, all of them different. Here's the code

<%'Setup the record set
Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.ConnectionTimeout = Application("DataConn_ConnectionTimeout")
DataConn.CommandTimeout = Application("DataConn_CommandTimeout")
DataConn.Open Application("DataConn_ConnectionString"), Application("DataConn_RuntimeUserName"), Application("DataConn_RuntimePassword")

Set cmdTemp = Server.CreateObject("ADODB.Command")
Set rs = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "Select * from DamageCar"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DataConn
rs.Open cmdTemp, , 1, 3


%>






Spooky -> RE: Wrong results displayed (4/21/2002 21:15:39)

Are there actually 2 databases or tables that information can be gained from?

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login




SpecialBlend -> RE: Wrong results displayed (4/21/2002 22:17:38)

No, each table/database has it's own unique name in which the asp takes the results from

What I just tried is in one of the tables I added another result in to see if it was actually the database and not Frontpage. Needless to say the result I just added in didn't appear. So it seems that Frontpage is taking it from a different place rather than the database I linked it to





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.203125