Insert Database Problem!! Please HELP!!!

See all posts See thread Reply

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