i have a website with punbb forums software. i wanna show ads in some part of my forums. i mean only in the Adult Section. so i made a Category by the name "Adult Section". now i tried 2 codes but no result: 1: <?php if ($cur_cat['id'] == '2') <script type="text/javascript" language="javascript" charset="utf-8" src="http://adspaces.ero-advertising.com/adspace/127974.js"></script>; Code (markup): 2: if ($cur_cat['cat_name'] == "Adult Section") <script type="text/javascript" language="javascript" charset="utf-8" src="http://adspaces.ero-advertising.com/adspace/127974.js"></script>; Code (markup): i even use echo and print before the <script> but yet no result. i never use php before so i m confused. and i don't know how the punbb store name in database. can anyone help me?
thanx for help but i thing that if() part not working. coz where is the Categories variable i have no idea. now i m learning php for this work. but need to know which name punbb designer used for Categories variable.
Either ask on the PunBB forum or read the code to find it. That's not a generic website design thing.