使用mysqli,您可以通过以下方式进行操作(假设mysqli对象已创建-
您也可以使用过程方法,只是略有不同):
$sql = "SELECt SQL_CALC_FOUND_ROWS *, post.id as pid, bla bla FROM account ORDER BY pid ASC". $eb["array"]['querylimit'];$result = $mysqli->query($sql);$TotalRcount = $result->num_rows;while($row=$result->fetch_assoc()){ $col1 = $row['col1']; // col1 is a placeholder for whatever column you are reading //read columns}


