Bug #11571 Updated: cannot insert data in msaccess

From: Date: Thu, 21 Jun 2001 15:11:59 +0000
Subject: Bug #11571 Updated: cannot insert data in msaccess
Groups: php.dev 
Request: Send a blank email to php-dev+get-57541@lists.php.net to get a copy of this message
ID: 11571 Updated by: kalowsky Reported By: sugus_24@yahoo.com 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] sugus_24@yahoo.com 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

« previous php.dev (#57541) next »