TOPIC:

Delete entries in the database 2 years 2 months ago #229389

  • toonetcreation
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 27
  • Thanks: 0
Yes I have a local test website to do it ;-)

Please Log in or Create an account to join the conversation.

Delete entries in the database 2 years 2 months ago #229390

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 265
Excellent. Let me know if you require assistance. :)

Regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

Please Log in or Create an account to join the conversation.

Delete entries in the database 1 week 5 days ago #249656

  • markboos
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
@DarkoCujic its a good idea to clean up data with php at a form. And because I am (very) into querying, I took the liberty to get the code into 1 query, without the id loop
<?php
$db = JFactory::getDBO();
$db->setQuery("DELETE r, s FROM #__facileforms_records as r
INNER JOIN #__facileforms_subrecords as s ON s.record=r.id
WHERE r.submitted < DATE_SUB(NOW(), INTERVAL 1 YEAR)");
$db->execute();
?>
=========
Huray for open source and people sharing instead of keeping code secret !

Please Log in or Create an account to join the conversation.

Last edit: Post by markboos.

Delete entries in the database 1 week 5 days ago #249657

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 1788
  • Karma: 3
  • Thanks: 158
Hi,

super!
Is everything ok for you? :)

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Delete entries in the database 1 week 5 days ago #249658

  • toonetcreation
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 27
  • Thanks: 0
ok for me , I have created a shell script to delete old entries, works fine.

thanks

Please Log in or Create an account to join the conversation.

Delete entries in the database 1 week 5 days ago #249660

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 1788
  • Karma: 3
  • Thanks: 158
Hi,

great, nice to hear that: D

If you need anything else, let me know

Regards,
Tihana
The following user(s) said Thank You: markboos

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.
  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.052 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!