Query on PHP4
| From: | Preethi Hegde | Date: | Wed, 26 Jul 2000 05:21:30 +0000 |
| Subject: | Query on PHP4 | ||
| Groups: | php.db php.general php.windows | ||
| Request: | Send a blank email to php-windows+get-1320@lists.php.net to get a copy of this message | ||
Hi I have a query...
how do i go for declaring ""ADODB.CONNECTION", "ADODB.RECORDSET"
objects in PHP4?
I have my program like this...
<HTML>
<BODY>
<?
$con = new COM("ADODB.CONNECTION");
$rs=new COM("ADODB.RECORDSET");
$opencon = $con->open("MySql","preethi","preethi");
$strSql="select * from books";
$rs->Open($strSQL,$con,"adOpenStatic","adLockUnspecified","adCmdUnspecified");
$rsrecordcount=$rs->RecordCount;
echo $rsrecordcount;
?>
</BODY>
</HTML>
On lines 8 and 9 its giving errors...
Warning: Invoke() failed: Exception occurred. in
C:\Inetpub\wwwroot\examples\TryADODB.php on line 8
Warning: PropGet() failed: Exception occurred. in
C:\Inetpub\wwwroot\examples\TryADODB.php on line 9
How do i go for it????
Waiting for the reply...
Preethi