בעית insert into ב-ODBC

erezhod

New member
בעית insert into ב-ODBC

כתבתי את התוכנית הבאה (שימוש בבסיס הנתונים ODBC עם MS Access):
<? $Connection = odbc_connect("project","",""); $g = "update users set name='raheli' , fname='ozeri' , email='[email protected]' , about='I like huge dicks'"; odbc_exec($Connection, $g) or die(odbc_errormsg()); odbc_close($Connection); ?>​
והוא פשוט מראה לי שגיאה שאני פשוט לא מבין אותה:
Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query., SQL state S1000 in SQLExecDirect in c:\inetpub\wwwroot\Project\insert.php on line 5 [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.​
מה הבעיה? כאשר אני מנסה באותה הדרך להוציא ולהציג נתונים מתוך טבלה זה עובד מצויין, תודה.
 

erezhod

New member
אופס זה לא הקוד הנכון חחחחחח

זה הקוד הנכון:
<? $Connection = odbc_connect("project","",""); $g = "insert into users(name,fname,email,about) values('raheli' , 'ozeri' , '[email protected]' , 'Hello im raheli ozeri'"; odbc_exec($Connection, $g) or die(odbc_errormsg()); odbc_close($Connection); ?>​
סליחה :/
 

bnayal

New member
אוי ואבוי לנו

שילוב של PHP ומיקרוסופט
מפחיד.... מה רע בMySQL שאתה עובד Access? שילוב מנצח
 

Jonatan 44

New member
הרשאות כתיבה למסד נתונים

תן הרשאות כתיבה למסד הנתונים.
 
למעלה