Jump to content

MS Access database question


pgh06

Recommended Posts

I need some help with code. I am trying to access a database in MS Access and need help with the connection and execution code to insert the query I have made.

 

//let's run the query
$mdbFilename = realpath("C:/My Documents/International.accdb");
$connection = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$mdbFilename", '', '');
$rResult = odbc_prepare($rConnection,$insert_query);

 

Is this right? The name of the database is called international, and the table name is called international students

Link to comment
https://forums.phpfreaks.com/topic/273568-ms-access-database-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.