Welcome Guest, Not a member yet? Register   Sign In
Store img tags in database and retrieve it
#3

(05-14-2016, 12:57 PM)cartalot Wrote: store just the image name in your database: sample.jpg
deal with the rest of the image path in a different way - helper, site wide variable, etc.

I think a misunderstanding occurred!!!
I have a column named "post_body" and hundreds of different tags will be insert in it. some of these tags are <img> tags. there is not just one image. In controller, I called a model function, retrieve related post info and passed to view. and all of the html tags will be printed.
Reply


Messages In This Thread
RE: Store img tags in database and retrieve it - by pb.sajjad - 05-14-2016, 01:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB