close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Deleting an image

Thread began 6/03/2015 12:16 pm by Dave W | Last modified 6/04/2015 1:07 pm by Ray Borduin | 687 views | 4 replies |

Dave W

Deleting an image

Hello,
I am trying to delete an image and update the database so that a new image can be uploaded.
In MySqli I go to " Webassist->File Manipulation-> Delete Files and select the delete button, image folder and filename. I then go to "WebAssist->MySQLi -> Data Management -> MySQLi Delete Record" I then enter all the details using the column value ID in the Lookup Column and "image" value in the Lookup value. I then select "Webassist -> MySQLI->Data management->Update Record" fill in the details on the General panel and then in the "Bindings Panel" just select the image. This is the same principal I used in MySQL and it worked fine, but in MySQLi when I try to delete the image I get the following error:
Fatal error: Call to a member function getColumnVal() on a non-object in C:\vhosts\smartgrafixuk\cms\edit_about.php on line 21
Can you tell me what I'm doing wrong, or is this a bug?
Thank you

Sign in to reply to this post

Ray BorduinWebAssist

You may need to move the Recordset code above the file delete code manually. It looks like it may just be a code order issue where you are trying to get a value from a recordset that hasn't been created yet.

Sign in to reply to this post

Dave W

Thanks Ray that worked. Is there any other way this can be done without having to cut and move the text. I don't mind doing it but it all adds time to a job when you have lots of pages where you need to do this.
I use this idea to save having a seperate images page for the purpose of deleting images to save server space.
Thanks again.

Sign in to reply to this post

Ray BorduinWebAssist

No, this is probably going to be necessary. Unfortunately ordering of code isn't something that is easy to do and Dreamweaver doesn't really tackle the subtleties of it at all in their API. There are just some cases where moving code up or down manually are necessary, and this appears to be one.

Sign in to reply to this post

Dave W

OK Ray, thanks for your help.

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