|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-27 06:00 UTC] phanto@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
I have the following code which tries to execute a stored procedure using ADODB created using COM. The ad Constants and strConnect have been defined in an include file. $objCommand = new COM ("ADODB.Command"); $objCommand -> ActiveConnection = strConnect; $objCommand -> CommandText = "someStoredProc"; $objCommand -> CommandType = adCmdStoredProc; $objParam = $objCommand -> CreateParameter("strAction", adVarChar, adParamInput, 1); $objCommand -> Parameters -> Append($objParam); $objParam = $objCommand -> CreateParameter("intCategoryID", adInteger, adParamInput, 4); $objCommand -> Parameters -> Append($objParam); $objParam = $objCommand -> CreateParameter("strCategory", adVarChar, adParamInput, 100); $objCommand -> Parameters -> Append($objParam); $clnParameter = $objCommand -> Parameters; echo gettype($clnParameter); The display says $clnParameter is an object, while ADODB documentation says "Parameters" is a collection of Parameter object.