I tried to generate a html table with only 2 cells using PHP. First table cell is an image and second cell has another table. I can put the data which I want in second cell (in table format). But failed to display image in first table cell.
Searching the forum showed some solved echo related to issue, but it couldn’t solve my problem.
Here is the code I used,
if(array_filter($values2))
{
echo "<!DOCTYPE html>";
echo "<html>";
echo "<head>";
echo "<table>";
echo "<tr>";
echo "<td>";
echo "<img src = treedir . '/' . $tffam;?>"; //my problem here
echo "</td>";
echo "<td>";
//a table generating code and it works fine
echo "</td>";
echo "</tr>";
echo "</body>";
echo "</html>";
}