我正在尝试为我的 AGI 使用 PHP 中 MS SQL 的存储过程,该过程将返回某些值。我不确定如何将这些返回值用作变量。我想使用 Column1、Column2(所有 3 行)、Column(所有 3 行)作为变量。
<?php
require('/var/lib/asterisk/agi-bin/phpagi.php');
$agi=new AGI();
$agi->answer();
$cli=$agi_callerid;
$con = mssql_connect('host','user','pass') or die('ERROR : Could not
connect to the server!');
if (!$con)
mssql_select_db('DB') or die('ERROR : Could not select a DATABASE');
$proc = mssql_init('exec store_procedure '$cli'', $con);
$proc_result = mssql_execute($proc);
mssql_free_statement($proc);
?>
我是 PHP 的完全新手,任何帮助将不胜感激。请请请回复!谢谢!