Welcome Guest, Not a member yet? Register   Sign In
avoid escape $this->db->get();
#1

[eluser]luca89pe[/eluser]
Hi,
i have a database with products. It contains: photo, name and a description of each product.
I need to print that in a view, i got results with:
Code:
$this->db->get("mytable");
But in description i need some newlines:
Code:
for example:
code: 003810391849.

product description
I put a
Code:
<br />
in the description field, after "code: 003810391849." but it doesn't work: codeigniter escapes it and print code:
Code:
003810391849.<br /> product description
There is a way to put there a newline?

Thank You,
Luca


Messages In This Thread
avoid escape $this->db->get(); - by El Forum - 05-21-2013, 07:28 AM
avoid escape $this->db->get(); - by El Forum - 05-21-2013, 12:10 PM
avoid escape $this->db->get(); - by El Forum - 05-22-2013, 04:10 AM
avoid escape $this->db->get(); - by El Forum - 05-23-2013, 04:39 PM
avoid escape $this->db->get(); - by El Forum - 05-23-2013, 05:43 PM
avoid escape $this->db->get(); - by El Forum - 05-24-2013, 01:55 AM
avoid escape $this->db->get(); - by El Forum - 05-24-2013, 02:33 AM
avoid escape $this->db->get(); - by El Forum - 05-24-2013, 04:25 AM
avoid escape $this->db->get(); - by El Forum - 05-24-2013, 05:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB