Общие > Базы данных
Передача параметров и запуск процедуры
(1/1)
MrGreeN:
Есть переменная которая передаётся, и должно быть значение возвращаемое после отработки процедуры.
Как это организовать?(MS SQL+PHP)
не так ли:
$con=mssql_connect ( " servername ", " username ","password");
mssql_init (my_proc@value=$value,$con);
$result=mssql_execute ($con);
echo $result;
ThE0ReTiC:
так
[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:
Thanks...
Навигация
Перейти к полной версии