$serverName="127.0.0.1";$connectionInfo=array("Database"=>"AGGCRMTEST","UID"=>"root","PWD"=>"123456");$conn=sqlsrv_connect($serverName,$connectionInfo);if($conn===false){echo"Couldnotconnect.\n";die(print_r(sqlsrv_errors(),true));}$tsql="exec[GetListByName]'o'";$stmt=sqlsrv_query($conn,$tsql);if($stmt===false){echo"Statement1couldnotbeexecuted.";die(print_r(sqlsrv_errors(),true));}else{$qty=sqlsrv_fetch_array($stmt);sqlsrv_free_stmt($stmt);}怎樣一個一個的取到數(shù)據(jù)啊。。。。。。。。。。。。。。(讓數(shù)據(jù)一個一個的顯示出來)
php中怎樣遍歷sqlserver數(shù)據(jù)?
慕勒3428872
2019-04-21 20:39:03