Access DB & PHP

From: Date: Mon, 17 Mar 2003 01:23:24 +0000
Subject: Access DB & PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139900@lists.php.net to get a copy of this message
Hi guys, I have a client who insists on using PHP and an Access database. He describes a problem with the access databases becoming locked when a user clicks 'stop' in their browser whilst downloading the page (and I have to stop the IIS server to release it). I have absolutely no experience with PHP/Access connections, so I thought I'd ding it along and see if the elite PHP programmers of the world can pick up an error in his code. > > I connect like this: > $conn = new COM ('ADODB.Connection'); > $conn->Open ("Provider=Microsoft.Jet.OLEDB.4.0; Data > Source='c:\\home\\westir\\data\\libcat.mdb'"); > $sql = "SELECT * FROM tbl_name "; > $result = $conn->Execute($sql); > > // deal with the database generated information > > $result->Close() > $conn->Close Is there a better way to do this? Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom

« previous php.general (#139900) next »