That sql statement that you helped me with on Friday is causing me another problem. Have attached a screenshot of the 3 tables in the relational join.
On the page_contents_update.php page (which is where you select the row(s) associated with that page_content if you select onle one row on one page the row selected shows on every page in the front end rather than the single page selected. The user can select the same row to show on multiple pages, but if it is only selected to go on one page it should not show up on other pages.
Not sure where the statement below needs to be changed?
$Rows = new WA_MySQLi_RS("Rows",$DBConnection,0);
$Rows->setQuery("SELECT homepage_panels.*, join_rows.*, page_contents.* FROM homepage_panels INNER JOIN join_rows ON homepage_panels.HomepagePanelsID = join_rows.RowsHomepageID INNER JOIN page_contents ON join_rows.RowsHomepageID = page_contents.PageContentsID AND join_rows.RowsHomepageID = page_contents.PageContentsID WHERE homepage_panels.Live AND homepage_panels.Type = 1 ORDER BY homepage_panels.PanelOrder ASC");