ID: 11571 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: ODBC related Operating system: PHP Version: 4.0.5 Assigned To: Comments: script works fine for me. are you sure you haven't given out your DSN in read only mode, or possibly requiring a user? Previous Comments: --------------------------------------------------------------------------- [2001-06-20 00:51:30] [EMAIL PROTECTED] hello. my script is : ----------------------------- <? /* connect database */ $dsn = "nawa_dsn"; $user = ""; $pw = ""; $conn = odbc_connect($dsn,$user,$pw); $sql = "insert into TB_Login (UserID,Name) values ('002','Somphob')"; /* check for errors */ if (!odbc_exec($conn,$sql)) { /* error */ echo "Error"; } else { echo "OK!"; } /* close connection */ odbc_close($conn); ?> ----------------------------- and result is : ----------------------------- Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query., SQL state S1000 in SQLExecDirect in c:inetpubwwwrootcustomersave.php on line 12 Error ----------------------------- please tell me. thank. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11571&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]