I am encountering a problem when printing out the array that is stored inside $description
.
Here is my code:
<?php foreach($descriptions as $description) { foreach ($languages as $language) { ?>
<div class="tabs-add language_id_<?php echo $language['language_id']; ?>" id="tab-language-<?php echo $module_row; ?>-<?php echo $language['language_id']; ?>">
<table id="general" class="form">
<tr>
<td><?php echo $entry_title; ?></td>
<td><input type="text" name="announcement_module[<?php echo $module_row; ?>][title][<?php echo $language['language_id']; ?>]" id="title-<?php echo $module_row; ?>-<?php echo $language['language_id']; ?>" value="<?php echo isset($module['title'][$language['language_id']]) ? $module['title'][$language['language_id']] : ''; ?>" /></td>
</tr>
<tr>
<td><?php echo $entry_description; ?> <a onclick="removeMessage(this);"><?php echo $button_remove; ?></a></td>
<td><textarea name="announcement_module[<?php echo $module_row; ?>][description][<?php echo $description_row;?>][<?php echo $language['language_id']; ?>]" id="description-<?php echo $module_row; ?>-<?php echo $description_row;?>-<?php echo $language['language_id']; ?>"><?php echo isset($module['description'][$description_row][$language['language_id']]) ? $module['description'][$description_row][$language['language_id']] : ''; ?></textarea></td>
</tr>
</table>
</div>
I want to print out the $entry_description
as many times the user wants. But I can't seem to print out more than one at a time. How do I solve this?