Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Delete Album in 1 Click ?

Asked Modified Viewed 2,395 times
A
AhmadAjrame
A
AhmadAjrame 10
  • Junior Member, joined since
  • Contributed 20 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

Hi i would like to delete album full of pictures , it take long time delete pictures 1 by 1 , i would like to know if there is any way to delete all album in 1 click , i tried delete but i gave me this :

Album cannot be deleted
There are photos in this album.
Edited by AhmadAjrame on 30-10-2008 12:47,
0 replies

5 posts

W
Wooya
W
Wooya 10
PHP-Fusion DEV Team
It's not a bug, it's undocumented feature...
  • Senior Member, joined since
  • Contributed 205 posts on the community forums.
  • Started 11 threads in the forums
answered
Senior Member

You're talking about v6 I suppose? In v7 you need to confirm multidelete and that's it...
0 replies
A
AhmadAjrame
A
AhmadAjrame 10
  • Junior Member, joined since
  • Contributed 20 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

No no , am talking about V6 , how can i delete album full of pictures in 1 click ?
0 replies
A
AhmadAjrame
A
AhmadAjrame 10
  • Junior Member, joined since
  • Contributed 20 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

Any Help Guys ?
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

1.
Edit album id in the code below and preview the code in a custom page:

<?php
$album_id = 2; // Enter album id to delete

$result1 = dbquery("DELETE FROM ".$db_prefix."photos WHERE album_id = '".$album_id."'");
if ($result1) {
   echo "Photos in album with id $album_id were deleted.";
}
else {
   echo "An error occured";
}

$result2 = dbquery("DELETE FROM ".$db_prefix."photo_albums WHERE album_id = '".$album_id."'");
if ($result2) {
   echo "<br />Album with id $album_id was deleted.";
}
else {
   echo "An error occured";
}

?>


2.
Delete photos and folder via ftp.
0 replies
A
AhmadAjrame
A
AhmadAjrame 10
  • Junior Member, joined since
  • Contributed 20 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

thanks brother .
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 5 posts
  • Votes 0 votes
  • Topic users 3 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet