Selecting Data from one table for use in another table

2 posts by 2 authors in: Forums > CMS Builder
Last Post: April 4, 2013   (RSS)

By (Deleted User) - April 4, 2013

In an admin only section I would like to add packages and sites

for example:

Package A  would only have a option of displaying on Domain A

Package B would have an option of displaying on Domain A and Domain B

Package C would have an option of displaying on Domain C and Domain D

I have created 3 tables package_type, package_level, package_websites (all these work fine)

In another table I'm trying to pull in a list of the websites based on the package subscribed to using this:

SELECT package_websites FROM cms_package_websites WHERE package_type='<?php echo $ESCAPED_FILTER_VALUE ?>'    refresh when package_type changes

Any help would be appreciated