TOPIC:

Re: Select, retrieve datas from database 11 years 1 month ago #38762

  • Topic Author
  • jem24h
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 15
  • Thanks: 0
What my form looks like :


Did you create your form in quickmode ?

According to this elements, here is what I should do :
- Check that the code is in the right place (see post above)
- Make a new form with just the field temas411 and try to make it work (so you're sure that it's not something else in your form that disturb tu use)
- Look for issues with the version of breezing you're using
- Try hosting the site elsewhere ( I you use WAMP or easyPhp, it might not be able to use BreezingForms Library correctly)


Hope that helped :)
Attachments:

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

Last edit: Post by jem24h.

Re: Select, retrieve datas from database 11 years 1 month ago #38803

  • K4RL0S
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 10
  • Thanks: 0
jem24h wrote:

Have you tried with a different browser ?
What is your breezingForms version ? Mine is 1.72

On the form page of your website, try editing the source code (Right click in the window and "edit the source code" in firefox) and search for "derechos" for example.

You should see something like that :



In your case that would be that :
<p class="bfElemWrap bfLabelLeft" id="bfElemWrap150">
<label id="bfLabel150" for="ff_elem150">Temas de desarollo :</label>
<select class="ff_elem" name="ff_nm_temas411[]" id="ff_elem150">
<option value="!empty"></option>
<option value="Derechos Humanos">Derechos Humanos</option>
<option value="Acceso a la justicia">Acceso a la justicia</option>
</select>

Do you have it ?


I don't :(

I tried with a different browser.
I did with a different form in Quickmode
My version is 1.73 <--- maybe is this

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

Re: Select, retrieve datas from database 11 years 1 month ago #39014

  • K4RL0S
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 10
  • Thanks: 0
Thank you so much jem24h!

I've reinstalled BF and your code works hahaha

Thanks (Y)
Take care :)

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

Re: Select, retrieve datas from database 10 years 11 months ago #43884

  • sergiopdlt
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 5
  • Thanks: 0
Hi K4RLOS and jem24h,
Could you help me please. I’m trying to do almost the same, but instead of filling a select I just want to fill a textfield.

I used the code you used and it works wells. I put and echo sentence to see if $test is good filled and yes. The value a want is there.

Now, I don’t know what I must modifier at function ff_setSelectList($name, $value) to fill just a fieldtext.

Could you help me please.
//
//
$this->execPieceByName('ff_InitLib');
$test = "";
$id = &JFactory::getUser();
mysql_connect("myhost","myuser","mypassword”);
mysql_select_db("mydatabase”);
$lien="SELECT * FROM jos_core_acl_aro WHERE value ='".$id->id."'"; $image=mysql_query($lien) or die (mysql_error());
while($uneligne=mysql_fetch_assoc($image))
{
//$test .= "$uneligne";
$test = $uneligne; // I modified this part too.
}
//
//
function ff_setSelectList($name, $value)
{
global $ff_processor;
for ($r = 0; $r < $ff_processor->rowcount; $r++) {
$row =& $ff_processor->rows[$r];
if ($row->name==$name)
$row->data2 = $value;
unset($row);
} // for
} // ff_setSelectList
//
//
ff_setSelectList('name2', $test);
echo $test. 'Hello'; // $test has the value I want.

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

Re: Select, retrieve datas from database 10 years 10 months ago #48279

  • Colear
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
Hi,

I would be very happy if someone could answer to the sergiopdlt question. I ve the same problem, and couldn't find in the documentation the name of the data access to a text file. I'm pretty shure it was not data2 (no reason for that), i tried with just data,with no success.

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

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!