Hi,
Can anyone please help me with this simple (i'm sure) problem.
I can fully create a system where I can upload images and manage them properly, however for my own personal use I wish to create a similar system where I can store .txt, .nfo and .doc files on my (remote) server using PHP and MySQL.
I have tried using my code and changing the MIME type from image to text, which I thought would work great. NO!!
Even a simple 3 field table (id, title, file) will not work. I cannot seem to store the file entry in my database. The full details store without a problem (e.g. title, author, date, rating and so on) but the field I have designated for the nfo/doc/txt file remains blank. I DO get a file stored on my server, but it is a bunch of jargon like "phpmhQyRg". I can view the file through a browser (e.g. going via mydomain.com/dbase/phpmhQyRg) and it is the correct file, just horribly named and unreachable via my PHP script (e.g. showfile.php?id=2).
Can anyone please help me?