$serverName = "127.0.0.1";
$connectionInfo = array(
"Database"=>"AGGCRMTEST", "UID"=>"root", "PWD"=>"123456");
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn === false )
{
echo "Could not connect.\n";
die( print_r( sqlsrv_errors(), true));
}
$tsql = "exec [GetListByName] 'o'";
$stmt = sqlsrv_query( $conn, $tsql);
if( $stmt === false )
{
echo "Statement 1 could not be executed.</br>";
die( print_r( sqlsrv_errors(), true));
}else{
$qty = sqlsrv_fetch_array( $stmt);
sqlsrv_free_stmt( $stmt);
}
怎样一个一个的取到数据啊。。。。。。。。。。。。。。(让数据一个一个的显示出来)