Jump to content

Help With Baaselect


lional

Recommended Posts

Hi

I used BAASelect a couple of years ago. I would like to use it but I need to have a where clasue on the database. I want to use it to select province and town but only for a particular category.

I want it to show only the province and towns relevant to the particular category.

 

Thanks in advance

 

Lional

Link to comment
https://forums.phpfreaks.com/topic/269773-help-with-baaselect/
Share on other sites

Looks like one of those rare occasions when I am the best qualified to answer a post :)

 

The quickest workaround (without rewriting the class or creating a subclass) would be to create a temporary mysql table containing only those in that category then use that table instead

 

CREATE TEMPORARY TABLE tmpprovince LIKE province
SELECT * FROM province
WHERE category = val

Link to comment
https://forums.phpfreaks.com/topic/269773-help-with-baaselect/#findComment-1386968
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.