Where would I use the PHP str_replace function to convert '¶' into < br > or ?
I tried looking at related posts about how to use str_replace and how to convert ¶ to in PHP. I also tried adding the str_replace in the model rather than in the query.
WinnerStatement
"Hello¶¶, I am a winner"
Model
public function early_results($user_id) {
$sql = "
SELECT
l.winnerStatement AS WinnerStatement,
l.recipient AS Recipient,
FROM Letter l
WHERE
l.winnerId = '{$this->db->escape($user_id)}';";
return $this->db->query($sql)->result();
}
View
<td><?=$feed_item->WinnerStatement?></td>
Controller
$this->load->view('dashboard/snippet/winners', array('WinnerStatement' => $winner_statement));