Trouble integrating content inside table

2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 24, 2010   (RSS)

By Hansaardappel - February 23, 2010 - edited: February 23, 2010

Sorry about spamming the board, but I have a question again :)

I want to put the content of a section inside two columns, but don't seem to get it right. I tried two different ways:

<table border="1" width="100%"><?php foreach ($fpvideoRecords as $record): ?>
<?php echo "<tr><td width=50%>", $record['content'], "</td>", "<td width=50%>", $record['content = 6'], "</td></tr>" ?>
<?php endforeach; ?></table>

The result: Notice: Undefined index: content = 6

<table border="1" width="100%"><?php foreach ($fpvideoRecords as $record): ?>
<?php echo "<tr><td width=50%>", $record['content'], "</td></tr>" ?>
<?php endforeach; ?></table>


This one does work, but as expected, it shows only one column per row.

Any idea on how to integrate the content in 2 columns per row?

Thanks again [unsure]