Jump to content
MakeWebGames

Recommended Posts

Posted
I am just working on a preference page and come up with an error cans someone tell me what I did wrong please.

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in

It's from this section

Forum Info Change

if($ir['bankpinwanted'] == 1)

{

echo "Bank Pin Change

}

else

{

echo "Apply for a Bank Pin

}

Personal Detail Change

";

Forum Info Change

 

Should be

Forum Info Change

";

And

echo "Bank Pin Change

 

Should be

echo "Bank Pin Change

";

And

echo "Apply for a Bank Pin

 

Should be

echo "Apply for a Bank Pin

";

Also seems to be a missing echo " on the last line you pasted!!!

Posted

it is correct, and the error you get is not related to that but missing operators as i pointed you out! just fix those and you will notice it! though it can error out again if you have still missing closure's before/after those lines

Posted
echo "[url='preferences.php?action=forumchange']Forum Info Change[/url]
";
if($ir['bankpinwanted'] == 1)
{
echo "[url='preferences.php?action=bankpin']Bank Pin Change[/url]
";
}
else
{
echo "[url='bankmanager.php']Apply for a Bank Pin[/url]
";
}
echo "[url='preferences.php?action=pdetailchange']Personal Detail Change[/url]
"; 

 

make sure you got all necessary " and ; in place...

Posted

I don't know about other people, but I find it extremely annoying and insulting if you ask for help, then tell us what the problem is after we give a solution. If you knew the problem already, why are you asking for help?

You could at least give the solution a try...

Posted
I don't know about other people, but I find it extremely annoying and insulting if you ask for help, then tell us what the problem is after we give a solution. If you knew the problem already, why are you asking for help?

You could at least give the solution a try...

I don't know about other people, but I find it extremely annoying and insulting if you ask for help, then tell us what the problem is after we give a solution. If you knew the problem already, why are you asking for help?
You could at least give the solution a try...

You should wait before replying to topics.

I have done as suggested and just wanted to make sure that a line was correct.

Posted
You should wait before replying to topics.

By that logic, we should never reply to a topic, always waiting in case somebody else posts something better.

If you've tried the solution somebody posted, you should let them know so they can suggest a different fix or ask for more info.

Posted
  echo "[url='".basename($_SERVER[']Forum Info Change[/url]
";
if( $ir['bankpinwanted'] == 1 ) {
  echo "[url='".basename($_SERVER[']Bank Pin Change[/url]
";
} else {
  echo "[url='bankmanager.php']Apply for a Bank Pin[/url]
";
}
  echo "[url='".basename($_SERVER[']Personal Detail Change[/url]
"; 

Not sure if it's been fixed or not so just thought i'd fix what i saw was wrong

EDITED: minor bug

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...