Pregunta

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;
¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top