导出全部也只能导出本页记录
strpos ( $tradeQueryCondition , 'limit' )
strpos这个方法是区分大小写的;
这里可以用stripos不区分大小写
if ( $mode == 'all' ) { $tradeQueryCondition = $this -> session -> tradeQueryCondition ; if ( strpos ( $tradeQueryCondition , 'limit' ) !== false ) $tradeQueryCondition = substr ( $tradeQueryCondition , 0 , strpos ( $tradeQueryCondition , 'limit' )); $stmt = $this -> dbh ->query( $tradeQueryCondition ); while ( $row = $stmt ->fetch()) $trades [ $row -> id ] = $row ; }
发现是 li mit 现在是大写的 LIMIT,改成 if ( strpos ( $tradeQueryCondition , ' LIMIT' ) !== false ) $tradeQueryCondition = substr ( $tradeQueryCondition , 0 , strpos ( $tradeQueryCondition , ' LIMIT' ));
不过最好从源头改起,否则涉及导出的地方要一个个改。
strpos ( $tradeQueryCondition , 'limit' )
strpos这个方法是区分大小写的;
这里可以用stripos不区分大小写
if ( $mode == 'all' ) { $tradeQueryCondition = $this -> session -> tradeQueryCondition ; if ( strpos ( $tradeQueryCondition , 'limit' ) !== false ) $tradeQueryCondition = substr ( $tradeQueryCondition , 0 , strpos ( $tradeQueryCondition , 'limit' )); $stmt = $this -> dbh ->query( $tradeQueryCondition ); while ( $row = $stmt ->fetch()) $trades [ $row -> id ] = $row ; }
发现是 li mit 现在是大写的 LIMIT,改成 if ( strpos ( $tradeQueryCondition , ' LIMIT' ) !== false ) $tradeQueryCondition = substr ( $tradeQueryCondition , 0 , strpos ( $tradeQueryCondition , ' LIMIT' ));
不过最好从源头改起,否则涉及导出的地方要一个个改。