$activeinfo = mssql_query("Select * FROM Associate where USR_ID = 1");
$USR_First = mssql_result($activeinfo,0,'USR_First');
echo $USR_First;
然而,在较新版本5.3+中,您一次只能执行一个字段。
有一种简单的方法可以用5.3?
回显整个记录(所有字段)答案 0 :(得分:1)
尝试使用mssql_fetch_row()
或者mssql_fetch_array()
甚至是mssql_fetch_assoc()
有关更多信息:http://www.php.net/manual/en/function.mssql-fetch-row.php
http://www.php.net/manual/en/function.mssql-fetch-array.php
http://www.php.net/manual/en/function.mssql-fetch-assoc.php