יש לי דף חיפוש דרכו אני אמור למצוא שמם משפחה מסויים של משתמש מתוך המסד נתונים
קוד:
<html>
<body background="images\850.gif" dir="rtl">
<%
fname=Request.Form("familyname")
sq="selcet*from personal_data where (sname='"&fname&"')"
path=server.mappath("data/db1.mdb")
set con= Server.createobject("ADODB.Connection")
con.open "Provider=Microsoft.Jet.OLEDB.4.0;data source=" &path
set R= con.Execute (sq)
Response.write "<body dir=rtl>"
Response.write "<br>רשימת שמות משפחה"
Response.write "<table> <tr>"
Response.write "<td> שם משפחה </td>"
Response.write "</tr>"
do until R.eof
Response.write "<tr><td>" & R.fields ("familyname") & "</td> </tr>"
R.movenext
loop
Response.write "</table> "
Response.write "</body>"
%>
</body>
</html>
השגיאה שאני מקבל:
Error Type:
Microsoft JET Database Engine (0x80040E14)
Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.
/shirionsite/w.asp, line 13
מה הבעיה?