I am trying to echo the following:
Which should display an image in the table cell. I can confirm that the variables $file_base_name and $row_table2['filename'] are filled -- I've echoed each independently and got the desired results.PHP Code:echo "<td>" . "<img src=\"" . $_SERVER['DOCUMENT_ROOT'] . "/uploads/" . $file_base_name . "\"" . "alt=\"" . $row2['filename'] . "\"" . "/>" . "</td>";
The above code produces:
Variables after $_SERVER['DOCUMENT_ROOT'] are not being interpreted, and I don't know why.Code:<td><img src="example.com/uploads/" alt="" /></td>



Reply With Quote

Bookmarks