Bug #11571: cannot insert data in msaccess
| From: | sugus_24 at yahoo dot com | Date: | Wed, 20 Jun 2001 04:51:30 +0000 |
| Subject: | Bug #11571: cannot insert data in msaccess | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57333@lists.php.net to get a copy of this message | ||
From: sugus_24@yahoo.com
Operating system: w2k
PHP version: 4.0.5
PHP Bug Type: ODBC related
Bug description: cannot insert data in msaccess
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:\inetpub\wwwroot\customer\save.php on line 12
Error
-----------------------------
please tell me. thank.
--
Edit Bug report at: http://bugs.php.net/?id=11571&edit=1