I have set and configured ms sql extension on PHP... but still that error still come out.
btw this is the script that i'm working on...
include ("connection_credential.php");
if( !isset($_REQUEST['pole_hdl']) )
die("No keys");
$handle = ($_REQUEST['pole_hdl']);
$myDB = "poleinfo"; //Pole database
//create an instance of the ADO connection object
$conn = new COM ("ADODB.Connection")
or die("Cannot start ADO");
//define connection string, specify database driver
$connStr = "PROVIDER=SQLOLEDB;SERVER=".$myServer.";UID=".$myUser.";PWD=".$myPass.";DATABASE=".$myDB;
$conn->open($connStr); //Open the connection to the database
?>
$arrKeys = split(",", $_REQUEST['pole_hdl']); //split list of keys into array
foreach($arrKeys as $index => $handle)
{
$sql = ("SELECT PAIdt.Pacct, Type, Kind, Config, Height, Owner, DCPole, PoleAttach.Attach, Name, Pcs, JobOrder, BusData.BusID, BusData.BusDescription, BusData.NominalVoltage,BusData.SubTran, BusData.BusCategory
FROM PAIDT, PoleAttach, PoleTagging, Outside, BusInfo, BusData
WHERE handle = $handle ");
$rs = $conn->execute($sql);
$fldcnt = $rs->Fields->Count();
for ($i = 0; $i < $fldcnt ; $i++)
{ ?>
$Fname = $rs->Fields[$i]->Name;
if ($Fname == "Pacct")
{
echo "Pole Account";
}
else
{
echo $rs->Fields[$i]->Name;
} ?>
Fields[$i]->Value ?>
} ?>
<?php
$rs->Close();
$conn->Close();
$rs = null;
$conn = null;
?>