SoilentRed
Caaan do!
Greetings everyone!
I've created a custom profile with fabrik to include Company name, address, etc... These users will be entering data into a form with a public list/details. The details of each list should include the company name, address and so on.
How do I make it so that each of there entries takes automatically takes this info without them having to enter it?
I've seen this documentation: http://fabrikar.com/forums/index.php?wiki/common-php-tasks/#select
I'm unclear on where to enter that code. I've tried creating a hidden field element, checking "eval" and entering the php code for Load a single ROW of data as an object as described in the documentation. I lead it info the default field. Is that where it goes?
When I save the entry and check the phpmyadmin and fabriks list database, the code is stored and not the value I am looking for. Just a string of code. Can someone help me out. I thought this would be relatively simple.
Thank you much.
Here's is the code I am using:
I've created a custom profile with fabrik to include Company name, address, etc... These users will be entering data into a form with a public list/details. The details of each list should include the company name, address and so on.
How do I make it so that each of there entries takes automatically takes this info without them having to enter it?
I've seen this documentation: http://fabrikar.com/forums/index.php?wiki/common-php-tasks/#select
I'm unclear on where to enter that code. I've tried creating a hidden field element, checking "eval" and entering the php code for Load a single ROW of data as an object as described in the documentation. I lead it info the default field. Is that where it goes?
When I save the entry and check the phpmyadmin and fabriks list database, the code is stored and not the value I am looking for. Just a string of code. Can someone help me out. I thought this would be relatively simple.
Thank you much.
Here's is the code I am using:
Code:
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query
->select('business')
->from('business_signup')
->where('business_ID = ' . $db->quote('business_id'));
$db->setQuery($query);
$business = $db->loadResult();