Doing a PHP query from #__facileforms_records and subrecords tables 1 year 3 months ago #260371

  • Topic Author
  • JimmyDowner
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
I'm trying to get a certain number of rows from the database belonging to the particular logged-in user. Every user to generate their own inputs to the form submitted.

Please see this link for more details:

Someone on my stackexchange page has suggested that I re-think the table design. I see data going into two tables for each time a BreezingForms Joomla form is submitted. I want to somehow perform a sql query to join two tables to get the required response that I will feed into HTML inside the Joomla custom html module and then to the Joomla Article as will be developed soon here.

Thank you for taking a look at this.

Inside the admin back-end I can almost get what I want by using the Manage Records function. I need to have this working on the front-end of Joomla for users of a certain user group which I have already done by ACL. Otherwise I have to seek other type of extension such as Fabrik or ConvertForms.

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

Doing a PHP query from #__facileforms_records and subrecords tables 1 year 3 months ago #260387

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11148
  • Karma: 3
  • Thanks: 730

I am not sure that I understand what you want, because I lost there, but please try it like this:
  ->select($db->quoteName(array('a.record', 'a.title', 'a.value')))
  ->from($db->quoteName('#__facileforms_records', 'b'))
  ->join('LEFT',$db->quoteName('#__facileforms_subrecords', 'a'). 'ON ' . $db->quoteName('a.Record') . ' = ' . $db->quoteName(''))
  ->where($db->quoteName(('') . ' = ' . '7')
  ->order($db->quoteName('') . ' ASC')
Basically, maybe it the better to redesign this.
In phpmyadmin you can make a query for join 2 tables and put result in a third one.f
Then use this third table for php query.

Here is an example for join:


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

Last edit: Post by tihana.krivic.
  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.039 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










Apprendre BreezingForms (French Community)

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

Questions et réponses sur les forums de l'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 with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!