문제

Does the following code leads to skip the first record of mysql array when using with fpdf?

$data=array();
while ($row_orders = mysql_fetch_assoc($orders)){
    $data[]= $row_orders;
}
return $data;
도움이 되었습니까?

해결책

FPDF does not matter here, this code does not use it directly.

This code get all data results to an indexed array, it does not skip the first row, if this one is missing, check you are not calling mysql_fetch_assoc($orders) before this code.

The best way to know is to try.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top