Código PHP:
$grado=$_POST['grado'];
}else{
echo "No has enviado ningun grado";
}
$result = mysql_query("SELECT * FROM lista WHERE grado LIKE '$grado' AND status LIKE 'Alta'",$link);
$row=mysql_fetch_array($result);
$result2 = mysql_query("SELECT DISTINCT nombre_educadora FROM educadoras, lista WHERE grado_educadora=grado AND grupo_educadora=grupo AND grado LIKE '$grado'",$link);
$row2=mysql_fetch_array($result2);
Código PHP:
$pdf = new PDF(); //Crea objeto PDF
$pdf->AddPage('P', 'Letter'); //Vertical, Carta
$pdf->SetFont('Arial','',10);//Establece la fuente a utilizar, el formato
$pdf->Cell(10,10,'Grado',0,0,'L');
$pdf->Cell(10,10,$row[4],0,0,'C');
$pdf->Cell(10,10,'Grupo',0,0,'L');
$pdf->Cell(10,10,$row[5],0,1,'C');
$pdf->Cell(10,20,'Apellido Paterno',0,0,'L');
$pdf->Cell(150,20,'Apellido Materno',0,0,'C');
$pdf->Cell(10,20,'Nombre',0,1,'R');
$pdf->Cell(10,0,utf8_decode($row[1]),0,0,'L');
$pdf->Cell(150,0,utf8_decode($row[2]),0,0,'C');
$pdf->Cell(10,0,utf8_decode($row[3]),0,1,'R');
$pdf->Cell(50,10,'Educadora',0,1,'C');
$pdf->Cell(50,10,utf8_decode($row2[0]),0,0,'C');