*

Recent

Author Topic: blogentries delete Not deleting comments  (Read 3054 times)

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
blogentries delete Not deleting comments
« on: January 27, 2015, 05:10:33 AM »
Hi Dwayne,

blogentries delete() (At the bottom)

Fas doesn't remove the comments if the entry is deleted.

And I couldn't see any sense in posting it as MySql. :)

You may be using something different than this: And maybe you'd like to tell me what you are using?

Code: [Select]
$stmt = $database->
Just change it to what you're using.

Code: [Select]
$stmt = $database->prepare("DELETE FROM fas_blogentries WHERE entryid=:entryid");
$stmt->execute(array(':entryid' => $entryid));

$stmt = $database->prepare("DELETE FROM fas_blogcomments WHERE blogentryid=:entryid");
$stmt->execute(array(':entryid' => $entryid));
« Last Edit: January 27, 2015, 05:44:59 AM by Frank »