MDB access using php
问题 I am having a little bit of trouble trying to write to a .mdb database from php. The database has a table called comments and it has 3 columns "id", "comment" and "by". The code I have is this. <?php $count =0; $db_path = "newsBlog.mdb"; $odbc_con = new COM("ADODB.Connection"); $constr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . $db_path . ";"; $odbc_con -> open($constr); $sql = "INSERT INTO [comments] VALUES (".$_POST['newsId'].",'".$_POST['comment']."', '".$_POST['by']."')"; echo