I have a page here
and a page here
and i want to include the artist Tilly from the kids page on the girls page but only when the age of Teenage is selected on the girls page.
the sql query for the girls page is
Tillys individual id number is 154.
i have tried
which can bee seen here
but tilly appears on the all page which i do not want
any ideas would be appreceated
and a page here
and i want to include the artist Tilly from the kids page on the girls page but only when the age of Teenage is selected on the girls page.
the sql query for the girls page is
Code:
selectSQL = "SELECT * FROM celebs INNER JOIN celebsvoicetypes ON celebs.idnumber = celebsvoicetypes.celebidvoicetypes WHERE celebsvoicetypes.celebstypes ='" &voiceid& "' AND celebs.sex = 'girls' ORDER BY celebs.surname,celebs.firstname"
i have tried
Code:
selectSQL = "SELECT * FROM celebs INNER JOIN celebsvoicetypes ON celebs.idnumber = celebsvoicetypes.celebidvoicetypes WHERE celebsvoicetypes.celebstypes ='" &voiceid& "' AND celebs.sex = 'girls' OR (idnumber like '154' AND celebsvoicetypes.celebstypes = 'Teenage') ORDER BY celebs.surname,celebs.firstname"
but tilly appears on the all page which i do not want
any ideas would be appreceated
Comment