I'm doing the same thing right now. Its very easy. Depending on what kind of code you want to store you could either use a "blob" field or a "text" field.
To retrieve all you would do is perform a "select" statement. It would probably be a good idea to use an auto_increment id-like field but that's all your call.
With some PHP and HTML you could even read your files in from an HTML form.