simaster99 Posted May 2, 2008 Posted May 2, 2008 (edited) Hi, On my colum right file i would like to add this, If the Manufacturers canon (id=6) them show a box, if it is not then carry on. How do convert this statement to PHP??? Any one one of any good books too! sim Edited May 2, 2008 by simaster99 Quote
♥FWR Media Posted May 2, 2008 Posted May 2, 2008 Hi,On my colum right file i would like to add this, If the Manufacturers canon (id=6) them show a box, if it is not then carry on. How do convert this statement to PHP??? Any one one of any good books too! sim if ( isset($HTTP_GET_VARS['manufacturers_id']) && $HTTP_GET_VARS['manufacturers_id'] == '6' ){ include(DIR_WS_BOXES . '<my_box>.php'); } Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
♥geoffreywalton Posted May 2, 2008 Posted May 2, 2008 Not a book but a good site w3.schools.com Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
simaster99 Posted May 3, 2008 Author Posted May 3, 2008 Hi, That for that, if ( isset($HTTP_GET_VARS['manufacturers_id']) && $HTTP_GET_VARS['manufacturers_id'] == '6' ){ include(DIR_WS_BOXES . 'Guarantee_seal.php');} this puts the seal if the 'manufacturers_id' = 6, but if the product comes from 'manufacturers_id' is 6 is doesnt. how do i work it so it does? this doesnt help!!! if (isset($HTTP_GET_VARS['products_id'])) && $HTTP_GET_VARS['manufacturers_id'] == '6' ){ include(DIR_WS_BOXES . 'Guarantee_seal.php');} Quote
spooks Posted May 3, 2008 Posted May 3, 2008 It depends what page your coming from, so I`m guessing, but this might do it: if ( (isset($HTTP_GET_VARS['products_id'])) && ($HTTP_GET_VARS['manufacturers_id'] == '6' || $HTTP_GET_VARS['filter_id'] == '6' ) ){ include(DIR_WS_BOXES . 'Guarantee_seal.php');} :-" Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.