title: How to create multicell table FPDF
body: <p>I wrote following code to create a table with multicell</p>
  
  <pre><code>$this-&gt;Cell(25, 25, "SR.No.", 'LTRB', 0, 'L', true);
      $this-&gt;Cell(60, 25, "CHALLAN", 'LTRB', 0, 'L', true);
      $this-&gt;Cell(300, 25, "JOB NAME", 'LTRB', 0, 'L', true);
      $this-&gt;Cell(60, 25, "QTY.", 'LTRB', 0, 'L', true);
      $this-&gt;Cell(60, 25, "RATE", 'LTRB', 0, 'L', true);
      $this-&gt;Cell(90, 25, "AMOUNT", 'LTRB', 1, 'C', true);
      $i=1;
      while($row  =   mysql_fetch_array($result))
      {
      $x = $this-&gt;x;
      $y = $this-&gt;y;
      $push_right = 0;
      $this-&gt;MultiCell($w = 25,25,$i,1,'C',0);
      $push_right += $w;
      $this-&gt;SetXY($x + $push_right, $y);
      $this-&gt;MultiCell($w = 60,25,$row[3],1,'C',0);
      $push_right += $w;
      $this-&gt;SetXY($x + $push_right, $y);
      $this-&gt;MultiCell($w = 300,25,$row[2],1,'L',0);
      $push_right += $w;
      $this-&gt;SetXY($x + $push_right, $y);
      $this-&gt;MultiCell($w = 60,25,$row[4],1,'L',0);
      $push_right += $w;
      $this-&gt;SetXY($x + $push_right, $y);
      $this-&gt;MultiCell($w = 60,25,$row[5],1,'L',0);
      $push_right += $w;
      $this-&gt;SetXY($x + $push_right, $y);
      $this-&gt;MultiCell($w=90,25,$row[6],1,'C',1);
      $this-&gt;Ln();
      $i++;
      }
  </code></pre>
  
  <p>My code generating this output
  <a href="https://i.stack.imgur.com/o34mZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o34mZ.jpg" alt="enter image description here"></a></p>
  
  <p>Bu that is not align i want to remove space from both row and equal height of each column tried many time but didnt resolved.</p>