Yes it's possible. Just make a BLOB column in your SQL table, upload a file to PHP as you would normally, and output the contents of the file into a SQL 'INSERT' query.
Don't forget to use [man]mysql_real_escape_string/man so your query's syntax doesn't get broken.