<?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";
}
?>
Category Forum
Official Core Support - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions