Welcome Guest, Not a member yet? Register   Sign In
Cannot get image path from the database table
#2

Hello Thamaraiselvam,

I had the same problem when getting a xml string from database in one of my projects, the problem is that CI is escaping a lot of characters like "<" or ">" and others which appears in markup tags.

The only way to avoid values to be escape is to use the query() method from Database Class instead of Active Record methods.

So your code should look like this :

PHP Code:
$query $this->db->query("SELECT * FROM data");

foreach(
$query->result() as $row)
    
print_r($row); 

It should solve your problem, if not feel free to ask again Smile

Good luck !
Reply


Messages In This Thread
RE: Cannot get image path from the database table - by _this - 01-06-2015, 07:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB