I have a table called "lists", a table "products" and a table "lists_has_products".
My Table lists:
- id
- name
- imgsrc
My Table products:
- id
- name
- imgsrc
- categoryid
My Table lists_has_products:
- listid
- productid
I want to select all products where the listid is equal to ... .
How can I do this? I already tried this with no result: (I'm working with phonegap)
tx.executeSql("SELECT * FROM PRODUCTS INNER JOIN LISTS_HAS_PRODUCTS ON listid = " + listid, [], onSelectSupermarketsSuccess, onTxError);