Note Submitter: hoseinquest at gmail dot com
----
hi
i have an odbc connection to an Access database file
when i try to insert data into the database , i see this
error message:
--------------
Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft
Access Driver] Operation must use an updateable query.,
SQL state S1000 in SQLExecDirect in F:\my web\news
access\add.php on line 23
------------
the source:
$db =
odbc_connect("news","",""
;) or die("cannot connect");
$query = "insert into news
values('','sa','a','')";
odbc_exec($db,$query);
------------------
or:
$db =
odbc_connect("news","",""
;,2) or die("cannot connect");
$query = "insert into news
values('','sa','a','')";
odbc_exec($db,$query);
-------------------
also i test it with odbc_prepare and other functions but it
not works
please help me for god faster
thanks please call me with email
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|