30-09-2005, 13:07
|
|
|
|
חבר מתאריך: 18.12.03
הודעות: 4,187
|
|
איך מעדכנים נתונים ב- Access?
שלום,
אני מנסה לעדכן נתונים עם הדף הבא אך מופיע לי השגיאה:
ציטוט:
Request object error 'ASP 0102 : 80004005'
Expecting string input
/hssb/bioa.asp, line 26
The function expects a string as input.
|
וזה הדף:
קוד PHP:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="28598"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>ניהול ביוגרפיה</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1255" /> </head> <body> <% Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _ "Dbq=" & Server.MapPath("db/sinesh.mdb") & ";" & _ "Uid=admin;" & _ "Pwd=;"
mySQL = "SELECT * FROM biograpy" Set bioRS = oConn.Execute(mySQL) %> <form name="bioa" method="post"> <textarea name="bio" style="width:415px; height:400px; direction:rtl; text-align:right;"><% Response.Write bioRS.Fields("contact") %></textarea> <input type="submit" value="עדכן" /> </form> <% oConn.Execute "UPDATE biograpy SET contact=" & Request.Form(bio) %>
</body> </html>
מה לא בסדר?
תודה.
_____________________________________
Pentax K100D + Pentax SMCP-DA 18-55mm f/3.5-5.6 AL + SMC Pentax-M Macro 1:4 50mm + SMC Pentax 1:2.8/105mm + SMC Pentax-M 1:2.8 35mm + SMC Pentax 1:1.4/50mm
|