I am generating a PDF with the help of FPDF library. It fetch the data from MYSQL databse.when the text size in any column is big it crosses the column and overlap with the text of next column. I want my text to be wrapped in that column only. When I tried using Multicell function the PDF was completely distorted. I have gone through the different post in this forum but I could not achieve it Kindly help me to achieve this my code goes.
function viewTable()
$this->cell(75,10,$result->user,1,0,'L');
$this->cell(80,10,$result->affiliation,1,0,'L');
$this->cell(34,10,$result->type,1,0,'L');
$this->cell(30,10,$result->sampleid,1,0,'L');
$pdf = new mypdf();
$pdf->AliasNbPages();
$pdf->AddPage('L','A4',0);
$pdf->Header1();
$pdf->headerTable();
$pdf->viewTable();
$pdf->footer();
$pdf->output();