-
uploading file????...
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.
Example:
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??
-
If you are using ftp to upload the files, then it has nothing to do with PHP.
-
You are wrong!!! In PHP code there're ftp functions to upload files!!!
-
Ah, I see what you mean now. If you could post the rest of your code I can help.
-
I think I already have a solution but very thanks for your attention!!