close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

My update is inserting the file path each time the page is updated, regardless if the image is updated

Thread began 9/12/2020 9:28 am by jo271221 | Last modified 9/15/2020 2:02 pm by Ray Borduin | 14 views | 5 replies |

jo271221

My update is inserting the file path each time the page is updated, regardless if the image is updated

I compared another page where we are doing the same thing and I can't figure out why one works and one does not.

The event page breaks the path to the image the update horse page seems to be working fine. I have attached both pages and will add FTP info in a PM.

Sign in to reply to this post

Ray BorduinWebAssist

What is the url for the page where I can see the issue?

Please post the sample url you are getting as well as what url you would like to see instead.

Sign in to reply to this post
Did this help? Tips are appreciated...

jo271221

Pages below. This event is expired so it is ok to update it and test.

Sign in to reply to this post

Ray BorduinWebAssist

I think you can just change this line:
'DefaultFileName' => "".($WADAtbl_posts_update->getColumnVal("image") ) ."",

to:
'DefaultFileName' => "",

Then it won't update the row if a new file isn't specified.

Sign in to reply to this post
Did this help? Tips are appreciated...

jo271221

Thank you very much! That worked on the update page and I believe it should have worked on my duplicate page but I am getting an error. I copied the Default Name per you and then I also needed to update the redirect on line #118 and the Insert path and line #72

For some reason the image is still getting bumped out on this duplicate page.

Sign in to reply to this post

Ray BorduinWebAssist

On this page you would need to change line 72 to:

$InsertQuery->bindColumn("image", "s", "".($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]?"https://performancehorsehotline.com/files-events-2020/".$WADAtbl_posts_update->getColumnVal("customerid") ."/".($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]):$WADAtbl_posts_update->getColumnVal("image",false))  ."", "WA_BLANK");
Sign in to reply to this post
Did this help? Tips are appreciated...

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...