Hi,
I'm a bit of a PHP newbie. I've written a little script to dump articles into an Access 2000 database. The only problem is that the database grows large very quickly and I need to compact it, but I can't get the ODBC connection to close, with a .ldb file remaining open. This, of course, means I can't compact the database without rebooting the server.
Here's the code pertaining to this:
$conn_id = odbc_connect("articles", "", "");
odbc_do($conn_id, "INSERT INTO table_name([source], [category], [subcategory], [URL], [header], [Date])VALUES('$source', '$category', '$subcategory', '$url', '$header', '$date_today');");
odbc_close_all();
I've tried odbc_close() and odbc_close_all() but neither works.
Am I doing something stupidly wrong?
Many thanks in advance.