[eluser]debow[/eluser]
I'm trying to create list of email address that you can click to email.
The following works.
Code:
<tr>
<th>Name</th>
<th>Email</th>
</tr>
<?php foreach ($members->result() as $m) { ?>
<tr>
<th><?php echo $m->name;?></th>
<th><?php echo $m->email;?></th>
</tr>
<?php }?>
But this does not.
Code:
<tr>
<th>Name</th>
<th>Email</th>
</tr>
<?php foreach ($members->result() as $m) { ?>
<tr>
<th><?php echo $m->name;?></th>
<th><?php echo safe_mailto($m->email,"$m->email");?></th>
</tr>
<?php }?>
The code block with the safe_mailto added will take me to a new page with only the first email displayed. It doesn't show in the view I created with the table listings.