Arkadaşlar bugün Access veri tabanı ile çalışan web sitemi sql veri tabanına çevirdim. Anasayfada üye girişine tıklayınca aşağıdaki gibi bir hata alıyorum. Yardımlarınızı bekliyorum..
ADODB.Recordset error '800a0e7d'
The connection cannot be used to perform this operation. It is either closed or invalid in this context.
/login.asp, line 76
76.satırda yazan kod
rsCheckUser.Open strSQL, adoCon
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.
bağlantı kodlarını tam olarak yazar mısınız? bu hata genelde aynı bağlantı değişkenlerini içiçe kullanmaktan kaynaklanır veya kapatılmış bir bağlantı tekrar kapatıldığında yaşanır
<tr> <td height="25" cellpadding="0" cellspacing="0" align="center" > <% 'Dimension variables Dim adoCon 'Holds the Database Connection Object Dim rsCheckUser 'Holds the recordset for the records in the database Dim strSQL 'Holds the SQL query to query the database Dim strUserName 'Holds the user name dim passx, rsUye
'Initalise the strUserName variable strUserName = Request.Form("txtUserName")
'Create an ADO connection object Set adoCon = Server.CreateObject("ADODB.Connection")
'Set an active connection to the Connection object using a DSN-less connection mysql_server = "******" mysql_user = "********" mysql_pass = "*******" mysql_db = "*********"
'Set an active connection to the Connection object using DSN connection 'adoCon.Open "DSN=guestbook"
'Create an ADO recordset object Set rsCheckUser = Server.CreateObject("ADODB.Recordset")
'Initialise the strSQL variable with an SQL statement to query the database strSQL = "SELECT password, ID, username FROM tblUsers WHERE username ='" & strUserName & "'"
'Open the recordset with the SQL query rsCheckUser.Open strSQL, adoCon
session("member")="" txtUserName=request.form("txtUserName") if txtUserName="" or txtUserName=" " then response.Write("<img src='images/hata.gif' /><br><br>Kullanıcı Adınızı Yazmadınız..!<br><br>") response.Write("<img src='images/ok.gif' /> <a href=JavaScript:history.go(-1)>Geri dönün ve gerekli verileri doldurun</a><br><br><br><br>") else
txtUserPass=request.form("txtUserPass") if txtUserPass="" or txtUserPass=" " then response.Write("<img src='images/hata.gif' /><br><br>Parola Yazmadınız..!<br><br>") response.Write("<img src='images/ok.gif' /> <a href=JavaScript:history.go(-1)>Geri dönün ve gerekli verileri doldurun</a><br><br><br><br>") else
strSQL = "SELECT * FROM tblusers WHERE username LIKE '" & txtUserName &"'" '& " and UYE_PAROLA=" & passx & "" set rsUye = server.CreateObject("adodb.recordset") rsUye.Open strSQL, my_Conn if rsUye.BOF or rsUye.EOF then response.Write("<img src='images/hata.gif'/><br><br>Böyle Bir Kullanıcı Yok..!<br><br>") response.Write("<img src='images/ok.gif' /> <a href=JavaScript:history.go(-1)>Geri dönün ve gerekli verileri doldurun</a><br><br><br><br>") else
IF not txtUserPass = password THEN response.Write("<img src='images/hata.gif'/><br><br>Şifrenizi Hatalı Girdiniz..!<br><br>") response.Write("<img src='images/ok.gif' /> <a href=JavaScript:history.go(-1)>Geri dönün ve gerekli verileri doldurun.</a><br><br><br><br>") end if end if end if end if 'If the recordset finds a record for the username entered then read in the password for the user If NOT rsCheckUser.EOF Then
'Read in the password for the user from the database If (Request.Form("txtUserPass")) = rsCheckUser("password") Then
'Write the HTML to display the current record in the recordset
Anasayfada üye girişine tıklayınca aşağıdaki gibi bir hata alıyorum. Yardımlarınızı bekliyorum..
ADODB.Recordset error '800a0e7d'
The connection cannot be used to perform this operation. It is either closed or invalid in this context.
/login.asp, line 76
76.satırda yazan kod
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye Ol Şimdi DeğilÜye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.