[eluser]kevthedude[/eluser]
Hey guys,
I need some help with a little script of mine. Pretty much I have this:
Code:
$sql = "SELECT * FROM `news` WHERE `id` = ?";
$query = $this->db->query($sql, array(intval($this->uri->segment(4))));
if($query->num_rows() > 0)
{
$data = $this->backbone->required_data();
$data['news'] = $query->row();
die($data['news']->content);
}
$this->load->view("admin/news_edit", $data);
} else {
$this->backbone->rerror("News does not exist!", 'admin/news');
}
Now, the returned $data['news']->content variable should return what's stored in the MySQL table:
Code:
<p><i><b>Hello world!</b></i></p>
<p>{more}</p>
<p>This is extra content that will not show on the main page.</p>
But rather returns:
Code:
Test body content
{more}
Here's some extra content that I do not want to show on the homepage.
Can't figure out how to preclude it from escaping those results. Any help would be much appreciated.