Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2011
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Printing Variable Value in side EOD

    Hi guys,
    I'm using this EOD thingi in order to print a table and get it PDF. I am using TCPDF and following their examples to get the PDF output.
    I need to print a php variable's value within the EOD.
    Can you please help me out.
    Below is the piece of code I'm running.

    Code:
    $tbl = <<<EOD
    <table cellspacing="0" cellpadding="1" border="1">
        <tr>
            <td rowspan="4"><img src="images/m24.jpg"></td>
            <td align="right" width="150">From the desk of</td>
            <td>: $contat</td>
        </tr>
        <tr>
            <td align="right">E-Mail</td>
    		<td>: $email</td>
        </tr>
        <tr>
           <td align="right">Telephone</td>
    	   <td>: $telephone</td>
        </tr>
          <tr>
           <td align="right">Mobile</td>
    	   <td>: $mobile</td>
        </tr>
    </table>
    EOD;
    the $variables are simply ignored. or even if I echo, there is no PHP value.
    Can you guys please shed some light on this issue.
    Pretty pleeeaaassseee

  • #2
    New Coder
    Join Date
    Oct 2011
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Sorry guys. Apparently the stupid SQL query had a issue. It is sorted.
    By the way I found that {$var_name} should echo it as well.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •