Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...