CodeIgniter Forums
Get gallery pictures into news - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Get gallery pictures into news (/showthread.php?tid=41228)



Get gallery pictures into news - El Forum - 05-02-2011

[eluser]Zimooon[/eluser]
Hey guys,

Another day another task Smile
I did a small gallery which stores the uploaded pictures in a folder . I didn't use database yet . I have one Controller and 2 libraries for this.
So now guys i want to input selected images to my newsfunction , so my newsposters can choose one(maybe more but one is enough for the moment) picture of the gallery and put it into their news.
How would you do it? Use a database? Check the URL and put into the news input value? Or what would be the easiest way for me to do that.

best regards

Zimon


Get gallery pictures into news - El Forum - 05-02-2011

[eluser]Zimooon[/eluser]
Edit:

Ok i go another way . I will input a upload function into write News and use another folder to store. Into the news sql table i put the url of the image and display it with the news.
In the view i simply choose the uploaded url as img src . Hope this works Smile

best regards