E
Evan
Help! I need some help! Help! Oh, won't you please please help me?
I've been at this for hours. I have asp code below that is not working
correctly. Basicaly it is a script asking that my form pull the last record
from my database (located in fpdb/signup2004.mdb). I use this method to post
to a database and send a confirm email but it stopped working. I am positive
it has something to do with the schema.ini file as well. Can someone take a
look? Also, let me know what directories each file should sit in? The
global.asa file is in the root and the schema.ini is in the fpdb folder.
Thanks!! Would be very appreciative of any assistance!!
<%
'//////////////////////////////////////////////////////////
'// The first two lines of code are calling the connection
'// object for the text file that is stored in the
'// global.asa file.
'//////////////////////////////////////////////////////////
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open Application("text_ConnectionString")
'//////////////////////////////////////////////////////////
'// Next you create a record set object, execute the
'// database connection and a SQL query.
'//////////////////////////////////////////////////////////
Set RS = Conn.Execute ("SELECT * From fpdb/signup2004.mdb")
'//////////////////////////////////////////////////////////
'// You then use code to loop through the database and
'// select the last record entered.
'//////////////////////////////////////////////////////////
Dim iCnt
Do Until RS.EOF
iCnt = iCnt + 1
full_name = RS("full_name")
email = RS("email")
IM = RS("IM")
R1 = RS("R1")
Comments = RS("Comments")
RS.MoveNext
Loop
'//////////////////////////////////////////////////////////
'// Close the record set and the connection.
'//////////////////////////////////////////////////////////
RS.Close
Conn.Close
%>
I've been at this for hours. I have asp code below that is not working
correctly. Basicaly it is a script asking that my form pull the last record
from my database (located in fpdb/signup2004.mdb). I use this method to post
to a database and send a confirm email but it stopped working. I am positive
it has something to do with the schema.ini file as well. Can someone take a
look? Also, let me know what directories each file should sit in? The
global.asa file is in the root and the schema.ini is in the fpdb folder.
Thanks!! Would be very appreciative of any assistance!!
<%
'//////////////////////////////////////////////////////////
'// The first two lines of code are calling the connection
'// object for the text file that is stored in the
'// global.asa file.
'//////////////////////////////////////////////////////////
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open Application("text_ConnectionString")
'//////////////////////////////////////////////////////////
'// Next you create a record set object, execute the
'// database connection and a SQL query.
'//////////////////////////////////////////////////////////
Set RS = Conn.Execute ("SELECT * From fpdb/signup2004.mdb")
'//////////////////////////////////////////////////////////
'// You then use code to loop through the database and
'// select the last record entered.
'//////////////////////////////////////////////////////////
Dim iCnt
Do Until RS.EOF
iCnt = iCnt + 1
full_name = RS("full_name")
email = RS("email")
IM = RS("IM")
R1 = RS("R1")
Comments = RS("Comments")
RS.MoveNext
Loop
'//////////////////////////////////////////////////////////
'// Close the record set and the connection.
'//////////////////////////////////////////////////////////
RS.Close
Conn.Close
%>