Re: PHP and COM
| From: | BB | Date: | Mon, 24 Jun 2002 14:08:48 +0000 |
| Subject: | Re: PHP and COM | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103589@lists.php.net to get a copy of this message | ||
$DBCon = new COM("ADODB.Connection");
$DBCon->Open('PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver
(*.mdb)};DBQ=your.mdb');
Function CloseSQL() {
global $DBCon;
$DBCon->Close();
$DBCon = "";
}
Function ExecSQL($SQL) {
global $DBCon;
$rs = @$DBCon->Execute($SQL);
if (!$rs) {
Kill("Error in $SQL");
} else {
return $rs;
}
}
"Mindhunter" <MindHunter@mailbox.co.za> wrote in message
news:20020624131147.28217.qmail@pb1.pair.com...
> I am looking for more examples on PHP and COM. I've got all the stuff
from
> the manual and the tutorials, but I want more. Anyone that can help plz?
>
> Tx
> MH
>
>