ODBC error in PHP: “No tuples available at this result index”
在执行存储过程的时候发生如题的错误,在stackoverflow上找到了相同的错误以及解答,大意是执行的sql语句有多条返回值,
$exec = odbc_exec($conn,$sql); //sql中有多条语句有返回值,跳过第一个返回值 odbc_next_result($exec); $resultArr = odbc_fetch_array($exec);
原文地址:http://stackoverflow.com/questions/3579744/odbc-error-in-php-no-tuples-available-at-this-result-index