Using methods on_insert, on_after_insert. on_update with MSAccess database table

QuestionsUsing methods on_insert, on_after_insert. on_update with MSAccess database table
C3media asked 7 years ago

Hello,

It´s possible to use methods for insert or update data based in MSAccess database table changes in operation?

2 Answers
Abu Ghufran answered 7 years ago

Yes, its doable exactly as in other databases.
Sample connecting settings are:

$db_conf = array();
$db_conf["type"] = "pdo";
$db_conf["server"] = "odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=".dirname(__FILE__)."/../../sampledb/northwind.MDB;Uid=;Pwd=;";
$db_conf["user"] = ''; // username
$db_conf["password"] = ''; // password
$db_conf["database"] = ''; // database
$g = new jqgrid($db_conf);

For events, you can refer docs > custom events.

migul replied 4 years ago

NO FUNCIONA CON ACCESS 2016

$db_conf = array();
$db_conf[“type”] = “pdo”;
$loca=dirname(__FILE__).”\cono.accdb”;
echo $loca;
$db_conf[“server”] = “odbc:Driver={Microsoft Access Driver (*.accdb)};Dbq=”.$loca.”;Uid=;Pwd=;”;

Abu Ghufran Staff replied 4 years ago

Make sure you have PDO-ODBC extension installed with PHP.

C3media answered 7 years ago

I saw possible creating view to get last_id row based in MSAccess table.

Resolved

Your Answer

15 + 18 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?