[PHP-DEV] Bug #11571 Updated: cannot insert data in msaccess From: kalowsky <email protected>
Date: 06/21/01

ID: 11571
Updated by: kalowsky
Reported By: sugus_24 <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] sugus_24 <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: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>