Please, I need help to echo atable row and div tag within PHP code. The following is what I have unsuccessfully tried:

echo '<tr>'
            '<td style="text-align:left">' . '<div class="describe">' . $row['im_description'] . '</div>' . '</td>'

I don't want it to appear in this format:

<tr> <td style="text-align:left"><div class="describe"><?php echo $image['im_description']; ?></div></td> </tr> 

Recommended Answers

All 2 Replies

echo '<tr>' . '<td style="text-align:left">' . '<div class="describe">' . $row['im_description'] . '</div>' . '</td>' . '</tr>';

That should work. If not, what exactly is the problem?

Thanks; it worked.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.