データベースから配列に入力する必要がありますが、次の形式にする必要があります。
$rows = array(
array("WD", "80GB","WD800AAJS SATA2 7200rpm 8mb" ,"$36.90","Y"),
array("WD","160GB","WD1600AAJS SATA300 8mb 7200rpm" ,"$39.87","Y"),
array("WD", "80GB","800jd SATA2 7200rpm 8mb" ,"$41.90","Y"),
array("WD","250GB","WD2500AAKS SATA300 16mb 7200rpm" ,"$49.88","Y"),
array("WD","320GB","WD3200AAKS SATA300 16mb 7200rpm" ,"$49.90","Y"),
array("WD","160GB","1600YS SATA raid 16mb 7200rpm" ,"$59.90","Y"),
array("WD","500GB","500gb WD5000AAKS SATA2 16mb 7200rpm","$64.90","Y"),
array("WD","250GB","2500ys SATA raid 7200rpm 16mb" ,"$69.90","Y"),
);
私は次のようにやっていますが、うまくいきません
$data = array();
foreach ($res as $value) {
$data[] = array('afiliadios'=>
array(
$value[noEmpadronamiento],
$value[docIdentificacion],
$value[municipio],
$value[departamento],
$value[fechaAfiliacion],
$value[apellido],
$value[nombre])
);
}
PDFでレポートを作成したいのですが、これは私がリードしているリンクです