<?
$dsn_name="customer";
$username="";
$password="";
$connect=odbc_connect($dsn_name,$username,$password) or die("ติดต่อ DSN ไม่ได้");
$sql="insert into name (name,surname) value ('$_POST['name']','$_POST['surname']')";
$execute=odbc_exec($connect,$sql) or die ("เอ็กซิคิวส์คำสั่งไม่ได้");
odbc_free_result($execute);
odbc_close($connect);
?>
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\design_test\echo2.php on line 6
Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query., SQL state S1000 in SQLExecDirect in D:\design_test\echo2.php on line 7
Not Execute
Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query., SQL state S1000 in SQLExecDirect in D:\design_test\echo2.php on line 7
Not Execute