ผมลองทำการเชื่อมฐานข้อมูลในหน้าLogin ดู แล้วโปรแกรมมมันบอกว่าError ช่วยบอกได้ไหมครับว่าError ตรงไหน แล้วมีวิธีแก้ยังไงบ้าง ขอบคุณมากครับ..............
อ้อ... ผมทำเว็บแบบ .asp นะครับ.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xee8 Thread 0x154 DBC 0x111144c Jet'.
/LoginChk.asp, line 14
Tag : - - - -
Date :
20 ต.ค. 2549 11:09:58
By :
ing_oil
View :
2245
Reply :
4
No. 1
Guest
Fatal error: Call to undefined function mysql_db_query() in E:\PHP\showdata.php on line 24
ไม่รู้ว่า line 14 คุณคืออะไร ลอง post code มาหน่อยสิคะ
Date :
20 ต.ค. 2549 13:12:20
By :
nut
No. 3
Guest
Unable to open registry key 'Temporary
คล้ายกับว่ามันไม่สามารถเปิดฐานข้อมูลได้ครับ ลองดูว่า Part ของฐานข้อมูลเขียนถูกหรือเปล่า แล้ว Set สิทธิ์ในการเขียนเป็น Everyone [ win XP ] หรือยัง
<%
if request.Form("user1")="" and request.Form("Xpass")="" then
session("SysError") = ""
response.redirect("Login.asp")
end if
if request.Form("user1")="" or request.Form("Xpass")="" then
session("SysError") = "**** YOU MUST INSERT ALL DATA *****"
response.redirect("Login.asp")
end if
dim dbconn,rst,sql
Set dbconn=Server.CreateObject("ADODB.Connection")
dbconn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&Server.mappath("Register.mdb")
dim x
sql="select * from user where UserName='"& request.Form("user1") &"'"
Set rst =Server.CreateObject("ADODB.Recordset")
rst.open sql,dbconn,1,3
x = rst.recordcount
if x<1 then
session("SysError") = "äÁèÁÕ UserName ¹Õé"
response.redirect("Login.asp")
end if
sql="select * from user where UserName='"& request.Form("user1") &"' and Upassword='"& request.Form("Xpass") &"'"
Set rst =Server.CreateObject("ADODB.Recordset")
rst.open sql,dbconn,1,3
x = rst.recordcount
if x<=0 then
session("Xuser") = request.form("user1")
session("SysError")="Password äÁè¶Ù¡µéͧ"
response.redirect("Login.asp")
else
session("User") = rst("UserName")
session("UnameSurname") = rst("Uname")
response.redirect("MainUser.asp")
end if
%>
.............................