Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Problems getting a file back from MySQL database

New Here ,
Mar 02, 2007 Mar 02, 2007

Copy link to clipboard

Copied

Hi all,

I am developing a site where members can upload documents and attach them to articles which they publish.
I have been running through a tutorial about uploading files to a MySQL DB which can be seen @

http://www.php-mysql-tutorial.com/php-mysql-upload.php

I have managed to get as far as having the files upload to the database and i can see that they are there using the MySQL client, but my problem is trying to get the files back from the DB. I have tried implementing the code given in the tutorial, but it doesn't seem to be working
Here's the code i am using to get the file - i have passed the id of the record using the URL, but when i run it through, the page just refreshes...

TOPICS
Server side applications

Views

187
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 02, 2007 Mar 02, 2007

Copy link to clipboard

Copied

LATEST
I really don't like storing files in the database. Much easier and more
efficient to store the files as files on the server, and store the path to
the file in the database. From an administration point of view, its much
better.

--
Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines