Reply to Re: Insert Database Problem!! Please HELP!!!

Re: Insert Database Problem!! Please HELP!!! new!
by colin, 13 years ago
The logic in your code is flawed. You should read file_dst_name after each call to process(). Not to mention that you store twice the same variable in your database:
$cthumb = $dir_pics.'/' . $handle->file_dst_name ;
$cphoto = $dir_pics.'/' . $handle->file_dst_name ;

But more importantly, you shouldn't use the file upload.php. it is just provided as an example of implementation. You should write your own code.Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important