$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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php