CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 PHPUpload

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.