Jump to content

Printing Variable Value in side EOD


elabuwa

Recommended Posts

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.

 

$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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.