Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] Running Stored Procs From: Richard Lynch (richard <email protected>)
Date: 05/08/00

In article <234C73C9E7C9D3119CF10090278D088885989C <email protected>>,
kobbayi <email protected> (Kevin Obbayi) wrote:

> I want to use PHP to connect to a SQL Server 7 database and run stored
> procedures. I can connect to the database no problem, BUT I don't know how
> to run a query that calls a stored proc. Can anyone point me in the right
> direction?

I think you might need an 'exec' in there...

mssql_query("exec mystoredprocedure(1, 2, 3)");

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>