close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

my product insert page is uploading to directry but not to the database

Thread began 10/23/2016 7:48 pm by scott.jeffries102 | Last modified 10/26/2016 7:30 pm by Ray Borduin | 427 views | 5 replies |

scott.jeffries102

my product insert page is uploading to directry but not to the database

my insert page is uploading images to file but not to database. have tried a few previous suggestons on webassist but have the same problem. My product-insert page is uploading images to the directory but not the file name to the right table in the database, i have 3 images, all with different names but when i put an image into productimage file, it puts the same file name in each img table in the database and doesnt use the filenames for the other two fields (Image2 and productthumb)

Attached Files
products_insert.php
Sign in to reply to this post

Ray BorduinWebAssist

It looks like all 3 are set to the same binding:

<?php echo($WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]); ?>

It should use:

thumb = <?php echo($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]); ?>
image2 = <?php echo($WA_DFP_UploadStatus["WA_UploadResult3"]["serverFileName"]); ?>

Sign in to reply to this post

scott.jeffries102

Thanks for getting back to me, I have tried changing the code but it still does the same, I did have 4 upload parameters so I deleted one, I believe I have changed the code correctly on line 101

Attached Files
products_insert.php
Sign in to reply to this post

Ray BorduinWebAssist

It looks like you did it manually and have some issues...

$WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]) ."" . $WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]) ."" . $WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]) ."" .($WA_DFP_UploadStatus["WA_UploadResult3"]["serverFileName"]) ."". $WA_AB_Split

should be:
$WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]) ."" . $WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]) ."" . $WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult3"]["serverFileName"]) ."". $WA_AB_Split

Sign in to reply to this post

scott.jeffries102

Hi Ray,

I have tried to put that line of code in and the product image is uploading but the thumb isn't at all and the same image is uploading to image2, am I looking at the wrong section of code? I've modified around line 100.

cheers

scott

Attached Files
products_insert.php
Sign in to reply to this post

Ray BorduinWebAssist

You still have:

($WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]) ."" . $WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]) ."" . $WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]) ."" . $WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult3"]["serverFileName"])

it should be:
($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]) ."" . $WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]) ."" . $WA_AB_Split . "".($WA_DFP_UploadStatus["WA_UploadResult3"]["serverFileName"])

It looks like you have the values repeated too many times. Are you updating this from the UI or in the code? You may have more success by using the user interface because the code is now out of sync with the columns.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...