I use ftp for upload images but I have a problem when do that in the remote server. when I leave the file field empty a path is registered in the DB when in this case the field reference to the image must be NULL.
regist images/links/35_ in the DB and upload a file named 35_ ????
Code of the destination file:
$destination_file = "public_html/images/links/".$arrx["link_ID"]."_".$_FILES['file']['name'];
The problem is in this line, I'm sure but I don't know what to do resolve the problem!!! Can You help me??