View Full Version : Printing Variable Value in side EOD

11-10-2011, 09:05 AM
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">
<td rowspan="4"><img src="images/m24.jpg"></td>
<td align="right" width="150">From the desk of</td>
<td>: $contat</td>
<td align="right">E-Mail</td>
<td>: $email</td>
<td align="right">Telephone</td>
<td>: $telephone</td>
<td align="right">Mobile</td>
<td>: $mobile</td>

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

11-10-2011, 09:10 AM
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.