Re: Sending arguments to a SP in PHP
| From: | Harpreet K. Singh | Date: | Thu, 04 Mar 2004 21:09:01 +0000 |
| Subject: | Re: Sending arguments to a SP in PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23060@lists.php.net to get a copy of this message | ||
Because it is a string
The first variable is a sql statement which is a string
the call to the SP is as follows
exec limitselect 'select var1, var2, var3 from table1 order by var1',10,100
----- Original Message -----
From: "Gerardo Rojas" <grojas@strategicinc.com>
To: "Harpreet K. Singh" <harpreet@crispincorp.com>;
<php-windows@lists.php.net>
Sent: Thursday, March 04, 2004 4:00 PM
Subject: RE: [PHP-WIN] Sending arguments to a SP in PHP
Why do you only have single ticks around the value of $oldquery?
--
Gerardo S. Rojas
mailto: grojas@strategicinc.com
-----Original Message-----
From: Harpreet K. Singh [mailto:harpreet@crispincorp.com]
Sent: Thursday, March 04, 2004 2:56 PM
To: php-general@lists.php.net; php-windows@lists.php.net
Subject: [PHP-WIN] Sending arguments to a SP in PHP
I am using PHP and sql server 2000.
I have a stored procedure which takes 3 arguments. The first argument is a
string and the rest 2 are integers.
For some reasons the call to the stored procedure is being trimmed.
My call is as follows
$oldquery="select var1,var2,var3,var4..... from table order by var1";
$query="exec limitselect '". $oldquery ."',". $limit .",".
$offset;
i try to print the sql command
echo "<br>".$query;
It prints out a trimmed string
exec limitselect 'select origin
is theri a limit to what one can send to a sp call
Please help i am totally confused.
Thanks
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php