$sql="INSERT INTO doc (code, head, detail) values('$code', '$head', '$detail')";
$execute = odbc_exec($connect, $sql) or die ("เอ็กคิวส์คำสั่งไม่ได้");
odbc_free_result($execute);
odbc_close($connect);
?>
</body>
</html>
พอรันจะขึ้น error ดังนี้ครับ
Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query., SQL state S1000 in SQLExecDirect in C:\AccessPHP\add.php on line 12
เอ็กซิคิวส์คำสั่งไม่ได้
Database Connected.
Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC Microsoft Access Driver] ODBC--connection to 'DPLUS51_sqlserver' failed., SQL state S1000 in SQLExecDirect in C:\AppServ\www\ReportDplus\selectquery.php on line 6
Error Execute [select * from 11B ]
[b]