JSHINER Posted April 23, 2008 Share Posted April 23, 2008 I have a file which allows users to enter, edit and view different products, they enter them here: <?php if($_GET['p']=="prod_1") { require('modules/products/' . $page['ticket']['prod_1'] . '.php'); } if($_GET['p']=="prod_2") { require('modules/products/' . $page['ticket']['prod_2'] . '.php'); } if($_GET['p']=="prod_3") { require('modules/products/' . $page['ticket']['prod_3'] . '.php'); } ?> Each module is different for each product. This works fine - edit_product.php?p=prod_1 - pulls up just the first product. the prod_1, prod_2, etc are defined by the overall ticket. So here's an example: page['ticket']['prod_1'] => 8 - which would pull up modules/products/8.php - allows them to edit it, view it, etc. Now my problem is when complete I want to display all the products on one page. So prod_1, prod_2, prod_3, etc. However my problem is prod_1 could = "1" and prod_3 could also = "1" - thus pulling in the same file to display the info for it, but that files takes the overall ticket id and prod_id and returns the information. I hope this makes sense. Any suggestions? Link to comment https://forums.phpfreaks.com/topic/102500-im-really-stuck-here-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.