Welcome Guest, Not a member yet? Register   Sign In
Database returning escaped results
#1

[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.


Messages In This Thread
Database returning escaped results - by El Forum - 02-21-2009, 04:21 PM
Database returning escaped results - by El Forum - 02-21-2009, 04:46 PM
Database returning escaped results - by El Forum - 02-21-2009, 04:49 PM
Database returning escaped results - by El Forum - 02-21-2009, 04:56 PM
Database returning escaped results - by El Forum - 02-21-2009, 05:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB