Forum Webscript.Ru

Общие => Базы данных => Тема начата: MrGreeN от 24 Июня 2003, 16:32:25

Название: Передача параметров и запуск процедуры
Отправлено: MrGreeN от 24 Июня 2003, 16:32:25
Есть переменная которая передаётся, и должно быть значение возвращаемое после отработки процедуры.
Как это организовать?(MS SQL+PHP)
не так ли:
$con=mssql_connect ( " servername ", " username ","password");
mssql_init (my_proc@value=$value,$con);
$result=mssql_execute ($con);
echo $result;
Название: Передача параметров и запуск процедуры
Отправлено: ThE0ReTiC от 24 Июня 2003, 20:49:49
так
[p]mssql_execute[/p]
Цитировать

if the stored procedure returns parameters or a return value these will be available after the call to mssql_execute() unless the stored procedure returns more than one result set. In that case use mssql_next_result() to shift through the results. When the last result has been processed the output parameters and return values will be available.
Название: Передача параметров и запуск процедуры
Отправлено: MrGreeN от 25 Июня 2003, 14:26:37
Thanks...