• Payment Plugins Poll

    We need your feedback on the need for updated payment plugins. Please go here and give us your feedback.

  • Joomla 5.1

    For running J!5.1 you must install Fabrik 4.1
    See also Announcements

  • Subscription and download (Fabrik 4.1 for J!4.2+ and J!5.1) are working now

    See Announcement
    Please post subscription questions and issues here

    We have resolved the issue with the J! updater and this will be fixed in the next release.

syntax for using AND in where clause

molcomp

Member
Hello,

I have the following where clause but it seems not to be working.

->where('projects.project_name = ' . $myDb->quote('{overlapping___project_1}') AND 'activities.activity_name = ' . $myDb->quote('{overlapping___activity}'));

Does anyone knows the proper syntact for using AND in where clause?
I have a list with one dropdown element, one condional dropdown element and in the third element calc I am trying to display data based on selecitons in the first two fields.

If I remove the AND in the where clause third element works with only one selected option.

Thanks everyone.
Alex
 
I guess you have to ask before you figure it out by yourself :).
Solution was just use double where clause
->where('projects.project_name = ' . $myDb->quote('{overlapping___project_1}') )
->where('activities.activity_name = ' . $myDb->quote('{overlapping___activity}'));
 
Back
Top