Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access Driver] The INSERT INTO statement contains the following unknown field name: 'ins'. Make sure you have typed the name correctly, and try the operation again., SQL state S0022 in SQLExecDirect in C:\xampp\htdocs\cit\con2.php on line 8
<?php
$test='C:\xampp\htdocs\cit\con1.mdb';
$connection = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$test", "", "");
$txtroll=$_REQUEST['txtroll'];
$sql= "insert into inst(ID,ins) values (NULL,'$txtroll')";
$rs = odbc_exec($connection, $sql);
?>
ins
exists in the DB table? – Jenson M John