File upload and Data Insert is not inserting the file names.
The files are uploading. Data is inserting except for the filenames being that are being uploaded. Can you take a look and give me a clue how to get the data to insert?
Thanks
Jack
The files are uploading. Data is inserting except for the filenames being that are being uploaded. Can you take a look and give me a clue how to get the data to insert?
Thanks
Jack
the file upload code at liners 71 - 788 needs to be moved so it is above the Insert record behavior that starts at line 39
Just tried it. Didn't work. Please see attached new version of the file.
to troubleshoot, add the following code at line 1 to turn on error reporting:
<?php error-reporting(E_ALL); ini_set('display_errors','on'); ?>
edit line 764:
$WA_redirectURL = "content1_detail.php?contentID=[Insert_ID]";
to:
$WA_redirectURL = "";
so there is no redirect after the insert.
and just before the closing </body> tag, add the following code that will write the insert statement, the contents of the files array and the file upload debug information to the page:
<?php
echo("<pre>");
var_dump($_FILES);
echo("</pre>");
echo("insert SQL: ".$WA_Sql."<br />");
echo("debug info: ".WA_DFP_AllUploadsDebug()."<br />");
?>
post back any errors and the result of the files, SQL and debug info after trying the upload.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.