close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Delete multiple records and associated files

Thread began 11/15/2012 4:08 am by davegw | Last modified 1/28/2014 9:02 am by davegw | 3340 views | 10 replies

sublucentBeta Tester

Link to hand coding example for multiple file deletes

For anyone else searching for this, here is a link to an example of how to hand code the loop to delete multiple files: showthread.php?t=27281&highlight=loop+file+delete

I also found that you can delete from multiple folders by adding additional $WA_DeleteFileResults

php:
<?php do { ?> 

<?php
$WA_DeleteFileResult1 
false;
$WA_DeleteFileResult2 false;
if(!(
$totalRows_rsLBimageDelete == 0)){
    
$WA_DeleteFileResult1 WA_FileAssist_DeleteFile("../images/lookbook/img/""".$row_rsLBimageDelete['imagelImage']  ."");
    
$WA_DeleteFileResult2 WA_FileAssist_DeleteFile("../images/lookbook/img/thumbnail/""".$row_rsLBimageDelete['imagelImage']  ."");
}
?>
<?php 
} while ($row_rsLBimageDelete mysql_fetch_assoc($rsLBimageDelete)); ?>


Anyone please chime in if there's a better way to do it.

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