TOPIC:

Matching database records 2 months 3 weeks ago #249924

  • Topic Author
  • mrperfectpz
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 365
  • Thanks: 0
I am getting error code 1064 ???

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

Matching database records 2 months 3 weeks ago #249925

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2935
  • Karma: 3
  • Thanks: 255
Hi,

something is wrong with sql syntax.
Try this:
$this->execPieceByName('ff_InitLib'); //Include BreezingForms Library
$db = JFactory::getDBO();//Get Database Object

//Create your own query 
$id='Select id From #__facileforms_records Where name= "FormName" ';  //replace FormName with name of your form

$joinID='Select joinID from #__facileforms_subrecords  where record = "$id" ';
$db->setQuery($joinID);


$result = $db->loadResult(); //load the result from the query
ff_setValue('ElementName', $result); // populate the value in the form. Change ElementName to the real name of your element you want to populate with this

Please check in your db table where is joinID and ID.
I will also look this better and get back to you

Regards,
Tihana

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

Matching database records 2 months 2 weeks ago #250000

  • Topic Author
  • mrperfectpz
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 365
  • Thanks: 0
I hope I am explaining things correctly as I cant seem to get this to work

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

Matching database records 2 months 2 weeks ago #250009

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2935
  • Karma: 3
  • Thanks: 255
Hi,

yep.
Can you please make a screenshot of your db table facileforms_records, and post it here?
DB table is located in phpmyadmin

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Matching database records 2 months 2 weeks ago #250060

  • Topic Author
  • mrperfectpz
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 365
  • Thanks: 0
Screenshot attached
Attachments:

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

Matching database records 2 months 2 weeks ago #250062

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2935
  • Karma: 3
  • Thanks: 255
Hi,

sorry I meant on content of tables #__facileform_records, and #__facileforms_subrecords.
Please open these tables, and make screenshot :)

Regards,
Tihana

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

Time to create page: 0.051 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!