עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

בעיה בחיפוש משתמשים בASP

Featured Replies

פורסם

אני בונה דף שיחפש משתמשים בASP ומסיבה כלשהי יש לי את אותה בעיה תקועה:

Technical Information (for support personnel)

Error Type:

Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)

[Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.

/AnimeSchool/admin/asp/clubsearch.asp, line 20

Browser Type:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

Page:

GET /AnimeSchool/admin/asp/clubsearch.asp

הנה הקוד של הדף עצמו


<head>
</head>
<body bgcolor="black">
<%

Set oConn = Server.CreateObject("ADODB.Connection")

oConn.open="Driver={Microsoft Access driver (*.mdb)};"&_
"Dbq=" &Server.MapPath("db/tClub.mdb") & ";" &_
"Uid=admin;" &_
"Pwd=;"

Set oRS = Server.CreateObject("ADODB.Recordset")

mySQL="SELECT * FROM tClub" &_
"WHERE Uname=" &_
"'" & Uname & "'"

oRS.Open mySQL, oConn, 3, 3

Response.Write"<pre>search</pre>"
Response.Request.QueryString("Uname")
Response.Write"<br/><br/>"

If oRS.BOF And oRS.EOF Then
Response.Write"No user found"
Response.Write"<br/><br/>"
Else
Response.Write"Here is the user:"
Response.Write"<br/>"
Do Until oRS.EOF
Response.Write oRS.Fields("Uname").Value
Response.Write ":"
Response.Write oRS.Fields("name").Value
Response.Write ","
Response.Write oRS.Fields("eMail").Value
Response.Write"<br/>"
oRS.MoveNext
Loop
End If

oRS.Close
set oRS=Nothing

oConn.Close
set oConn=Nothing
%>
</body>
</html>
<html>

פורסם

 mySQL="SELECT * FROM tClub WHERE Uname='" & Uname & "'"

כפי שאתה רשמת המחשב רואה את זה כך:

 mySQL="SELECT * FROM tClubWHERE Uname='" & Uname & "'"

שים לב להבדלים

פורסם
  • מחבר

עכשיו הופיעה בעיה כזאת

Technical Information (for support personnel)

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 0x97c Thread 0x328 DBC 0x122c71c Jet'.

/AnimeSchool/admin/asp/clubsearch.asp, line 9

Browser Type:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

Page:

GET /AnimeSchool/admin/asp/clubsearch.asp

Time:

Monday, June 12, 2006, 3:32:54 PM

More information:

Microsoft Support

ושורה 9 זאת

oConn.open="Driver={Microsoft Access driver (*.mdb)};"&_
"Dbq=" &Server.MapPath("db/tClub.mdb") & ";" &_
"Uid=admin;" &_
"Pwd=;"

פורסם

לא נראה לי שצריך להיות שם = אלא רווח...

פורסם

oConn.open="Driver={Microsoft Access driver (*.mdb)};"&_
"Dbq=" & Server.MapPath("db/tClub.mdb") & ";" &_
"Uid=admin;" &_
"Pwd=;"

תשים לב למה שאתה כותב, הצמדת את & ל Server.

השאלה הזו קשורה לבגרות או משהו כזה ? אתה הבחור השלישי כבר בדיוק עם אתו התרגיל.

תתחילו להשתמש בחיפוש של האתר, זה לא יזיק וימנע נעילה של דיונים כפולים.

פורסם

צריך להיות גם רווח בין האמפרסנט לבין ה- _.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.