The Ace Posted March 20, 2008 Share Posted March 20, 2008 Here is part of my explore code: if($ir['location'] == 5) { print " [url='crystalbank2.php']Crystal Bank[/url]"; if($ir['location'] == 5) { print " [url='cyberbank.php']Cyber Bank[/url] "; This bit is the original code: if($ir['location'] == 5) { print " [url='cyberbank.php']Cyber Bank[/url] "; So, the cyber bank will be accessible when you are able to get to location 5. So I want that with my crystal bank as well, so I did this: if($ir['location'] == 5) { print " [url='crystalbank2.php']Crystal Bank[/url]"; But when I click on explore, I get this parse error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/home/u1149/domains/globalconflict2250.co.uk/public_html/explore.php on line 16 This is line 16: if($ir['location'] == 5) Please help me out here! :) Thanks. Quote Link to comment Share on other sites More sharing options...
WickedJester Posted March 20, 2008 Share Posted March 20, 2008 Re: Explore.... if($ir['location'] == 5) { print " Crystal Bank Cyber Bank "; } should work, the first IF wasnt closed properly Quote Link to comment Share on other sites More sharing options...
The Ace Posted March 20, 2008 Author Share Posted March 20, 2008 Re: Explore.... It still says there is a parse error on line 16....: if($ir['location'] == 5) Quote Link to comment Share on other sites More sharing options...
Godhand Posted March 20, 2008 Share Posted March 20, 2008 Re: Explore.... Check the lines above that. You might have accidentally forgotten a } somewhere else Quote Link to comment Share on other sites More sharing options...
WickedJester Posted March 20, 2008 Share Posted March 20, 2008 Re: Explore.... if you dont see anything post the section from <td> to </td> or the whole page Quote Link to comment Share on other sites More sharing options...
The Ace Posted March 20, 2008 Author Share Posted March 20, 2008 Re: Explore.... I re-uploaded the original, then just copied what Wicked posted and added that in, and it seems to work fine now. Thanks for all your help peoples! lol :D Quote Link to comment Share on other sites More sharing options...
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.