upload file onto mySQL database


I am trying to upload files mySQL database, not just the link, through Yii and have not been able to find any resources that can help me do this. I would like to upload these files into a specific table in the database and update their fields such as id, type, name, etc. Is this possible? I am relatively new to Yii and PHP.

Thanks for your help.

Kindly elaborate your doubts. im not understanding your requirement.


just use blob type field in your structure of table, then put into it a binary data.