I am displaying some data from a database into my cms, using tables (tr
, td
).
<tr align="center">
<td><?php echo $i++; ?></td>
<td><?php echo $post_image; ?></td>
<td><?php echo $post_title; ?></td>
<td>
<iframe width="100px" frameborder="0" id='inneriframe' scrolling=yes >
<?php echo $post_description; ?>
</iframe>
</td>
<td><a href="index.php?edit_football_news=<?php echo $post_id; ?>">Edit</a></td>
<td><a href="includes/delete_football_news.php?delete_football_news=<?php echo $post_id; ?>">Delete</a></td>
</tr>
Unfortunately the description php variable is not displayed at all inside my iframe
. However, if I take out the iframe
tag, everything works fine, and I can see all the stored values from the database.
<tr align="center">
<td><?php echo $i++; ?></td>
<td><?php echo $post_image; ?></td>
<td><?php echo $post_title; ?></td>
<td><?php echo $post_description; ?></td>
<td><a href="index.php?edit_football_news=<?php echo $post_id; ?>">Edit</a></td>
<td><a href="includes/delete_football_news.php?delete_football_news=<?php echo $post_id; ?>">Delete</a></td>
</tr>
So my main question is how to use iframes inside td
s?