Hello, its been a while since I posted/looked here... my normal email client
doesn't handle newsgroups :( (ximian evolution)
I was wondering how you stick a file into a database, and then retrive it
again for the user with PHP/MySQL. I tried the following which apparently
didnt work...
Very quick overview of what I did...
html
------
<input type="file" name="file"><in put type="submit>
PHP
------
$SQL = "INSERT INTO table (file) VALUES (" + $_REQUEST['file'] + ");";
I didn't even bother running the SQL querry, I just echoed it and I got the
location of the file (ie: /home/eric/blah...)
How do I get the file into the database, and once its there, how do i get it
back out?
Thanks,
-Eric Kincl
doesn't handle newsgroups :( (ximian evolution)
I was wondering how you stick a file into a database, and then retrive it
again for the user with PHP/MySQL. I tried the following which apparently
didnt work...
Very quick overview of what I did...
html
------
<input type="file" name="file"><in put type="submit>
PHP
------
$SQL = "INSERT INTO table (file) VALUES (" + $_REQUEST['file'] + ");";
I didn't even bother running the SQL querry, I just echoed it and I got the
location of the file (ie: /home/eric/blah...)
How do I get the file into the database, and once its there, how do i get it
back out?
Thanks,
-Eric Kincl
Comment