Hi,
I've checked out the article (url is below) on doing this, but it didn't work.
Here's the error that gets thrown up:
Warning: stat failed for C:\WINNT\TEMP\php19.tmp (errno=2 - No such file or directory) in c:\inetpub\wwwroot\rq\store.php on line 23
It does create the record in the database, but doesn't upload the file I want into the database (it does upload the file name, size, type etc and returns a unique ID)
The line of code that causes the problem is...
$data = addslashes(fread(fopen($formfile, "r"), filesize($formfile)));
And it's the fread() function is what's causing the problem.
Anyone got any suggestions?
PS Here's the article I'm refering to:
http://www.phpbuilder.com/columns/florian19991014.php3