kenlyle
|
Posted: 01/05/2002, 4:48 PM |
|
After Publishing the PHPUpload example app, and following the tips from Peter for PHP 4 + Templates, I am left with this error condition:
Warning: Unlink failed (Is a directory) in /home/nextwave/www/phpupload/UploadResult.php on line 54
Warning: Unable to open 'D:\pictures\Calitrip00\malesealsfight.jpg' for reading: No such file or directory in /home/nextwave/www/phpupload/UploadResult.php on line 56
Database error: Invalid SQL: update items set location='' where item_id=
MySQL Error: 1064 (You have an error in your SQL syntax near '' at line 1)
Session halted.
Any help is appreciated.
Thanks.
Ken
|
|
|
Brent
|
Posted: 01/05/2002, 11:36 PM |
|
Database error: Invalid SQL: update items set location='' where item_id=
Just a guess, but it would appear the value item_id is being compared to is an empty string.
As for the warnings, did you look at line 54 of UploadResult.PHP and what was
it trying to do? Also check to make sure you have the directories and files
defined. Your Properties | Files directories may be pointing to directories
that don't exist.
|
|
|
swhite@emailbiz.org
|
Posted: 01/07/2002, 9:28 AM |
|
Also make sure your script has the rights to write to the directory in question. The upload will fail if your script doesn't have the appropiate network permissions to write/create files in that folder.
|
|
|
|