Please. I need aid with FPDF.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ivan.molina@gmail.com

    Please. I need aid with FPDF.

    Hi

    I have a problem to print a variable within the head of a pdf. In the
    body of the pdf I print:

    $pdf->cell(0,10,$fec ha,0,1);

    and it does very well, but within the head:

    $this->cell(0,10,$fec ha,0,1);

    and it does not print it.

    Can help me?

  • Dikkie Dik

    #2
    Re: Please. I need aid with FPDF.

    I think you need a line like:

    global $fecha;

    before you can use the variable there.

    Best regards

    ivan.molina@gma il.com wrote:
    Hi
    >
    I have a problem to print a variable within the head of a pdf. In the
    body of the pdf I print:
    >
    $pdf->cell(0,10,$fec ha,0,1);
    >
    and it does very well, but within the head:
    >
    $this->cell(0,10,$fec ha,0,1);
    >
    and it does not print it.
    >
    Can help me?
    >

    Comment

    • ivan.molina@gmail.com

      #3
      Re: Please. I need aid with FPDF.


      Dikkie Dik ha escrito:
      I think you need a line like:
      >
      global $fecha;
      >
      before you can use the variable there.
      >
      Best regards
      >
      ivan.molina@gma il.com wrote:
      Hi

      I have a problem to print a variable within the head of a pdf. In the
      body of the pdf I print:

      $pdf->cell(0,10,$fec ha,0,1);

      and it does very well, but within the head:

      $this->cell(0,10,$fec ha,0,1);

      and it does not print it.

      Can help me?
      Thanks.

      I am going to test.

      Soon tell you

      Comment

      • ivan.molina@gmail.com

        #4
        Re: Please. I need aid with FPDF.


        Dikkie Dik ha escrito:
        I think you need a line like:
        >
        global $fecha;
        >
        before you can use the variable there.
        >
        Best regards
        >
        ivan.molina@gma il.com wrote:
        Hi

        I have a problem to print a variable within the head of a pdf. In the
        body of the pdf I print:

        $pdf->cell(0,10,$fec ha,0,1);

        and it does very well, but within the head:

        $this->cell(0,10,$fec ha,0,1);

        and it does not print it.

        Can help me?

        Thanks

        That was what it happened to me...

        Greetings
        Iván Molina

        Comment

        Working...