TOPIC:

Project BREEZINGFORM+ CONTENTBUILDER. 2 weeks 6 days ago #252274

  • Eddy.vh's Avatar
  • Eddy.vh
  • Away
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 576
  • Karma: 4
  • Thanks: 96
Hi Tihana,

Isn't there a mistake?
AND dirclub =".$user->name;
Shouldn't it rather be :
<?php $db = JFactory::getDbo();  $user = &JFactory::getUser(); $db->setQuery("Select max(id_federado) From #__deportistas Where seleccion = 'Si'  AND dirclub =".$user->name); return $db->loadResult();?>

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

Last edit: Post by Eddy.vh.

Project BREEZINGFORM+ CONTENTBUILDER. 2 weeks 6 days ago #252275

  • tihana.krivic's Avatar
  • tihana.krivic
  • Online
  • Moderator
  • Moderator
  • Posts: 2994
  • Karma: 3
  • Thanks: 256
Hi,

yep, you are right. I missed it.

I edit my message above, and add it

Thank you very very very much :D

Best regards,
Tihana

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

Project BREEZINGFORM+ CONTENTBUILDER. 2 weeks 6 days ago #252293

  • Topic Author
  • DAVIDPL
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 107
  • Thanks: 0
Hello Tatiana,

with this code it does not work either, it blocks the entry to the form.


Best regards,
David

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

Project BREEZINGFORM+ CONTENTBUILDER. 2 weeks 6 days ago #252295

  • tihana.krivic's Avatar
  • tihana.krivic
  • Online
  • Moderator
  • Moderator
  • Posts: 2994
  • Karma: 3
  • Thanks: 256
Hi,

I tested it, and it works (form is not blocked).

Regards,
Tihana

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

Project BREEZINGFORM+ CONTENTBUILDER. 2 weeks 5 days ago #252322

  • Topic Author
  • DAVIDPL
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 107
  • Thanks: 0
Hello

CODE:
AND dirclub =".$user->name;

I don't understand why name shouldn't be username


code:
locked form.
<?php $db = JFactory::getDbo(); $user = &JFactory::getUser(); $db->setQuery("Select max(id_federado) From #__deportistas Where seleccion = 'Si' AND dirclub =".$user->name); return $db->loadResult();?>


Code:
Enter the form but it does not return the searched value "username"
lack ; prior to )
<?php $db = JFactory::getDbo(); $user = &JFactory::getUser(); $db->setQuery("Select max(id_federado) From #__deportistas Where seleccion = 'Si' AND dirclub =".$user->name;); return $db->loadResult();?>


Code:
Enter the form but it does not return the searched value "username"
lack ; prior to )
<?php $db = JFactory::getDbo(); $user = &JFactory::getUser(); $db->setQuery("Select max(id_federado) From #__deportistas Where seleccion = 'Si' AND dirclub =".$user->username;); return $db->loadResult();?>

Regards,
David

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

Project BREEZINGFORM+ CONTENTBUILDER. 2 weeks 2 days ago #252345

  • Topic Author
  • DAVIDPL
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 107
  • Thanks: 0
Hello
Finally the formula is resolved and it works well

this is the code


<?php $db = JFactory::getDbo(); $user = &JFactory::getUser(); $db->setQuery("Select max(id_federado) From #__deportistas Where seleccion = 'Si' AND dirclub = '{$user->username}' AND Estado = '4'"); return $db->loadResult();?>

Regard
David

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

Moderators: ForumSupport
Time to create page: 0.050 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!