Having Two Upload File Field

Hi all. I’m newbie here in YiiFramework. But I’d browse this forum so many time and its proven to help me in getting to understand in Yii.

I’d search this problem all over internet but does not find any answers. ( I don’t know if I missed anything ).

I have a table in my database named tbl_media_manager. It is responsible to keep all the media ( in my case the image ). the tbl_media_manager consist of the name of file and id ( and other things too ).

I have a view with two upload file fields in the view. one named campaign_banner and campaign_logo. A lot of tutorial show how to upload one files only. But mines is to have two upload and store it to same db table. How eh?

So can anybody teach me how to keep the two different file into the database? I don’t really know how to write my problem.So kindly ask me back on if you confused with my problem.

Nizam Sab ap ye article check kro wiki per shaid ap ka masla hal kr de ager nai tu batana phir koi aur hal nkalain ge

http://www.yiiframework.com/wiki/176/uploading-multiple-images-with-cmultifileupload/