Question

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;
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top