CherryDarling Posted February 21, 2010 Posted February 21, 2010 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 "; Quote
Lithium Posted February 21, 2010 Posted February 21, 2010 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!!! Quote
CherryDarling Posted February 21, 2010 Author Posted February 21, 2010 My problem seems to be this : if($ir['bankpinwanted'] == 1) Is this not correct? Quote
Lithium Posted February 21, 2010 Posted February 21, 2010 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 Quote
Analog Posted February 21, 2010 Posted February 21, 2010 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... Quote
Zeggy Posted February 21, 2010 Posted February 21, 2010 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... Quote
CherryDarling Posted February 21, 2010 Author Posted February 21, 2010 I have done that and still get an error I will check all the lines thanks for pointing out what I missed Quote
CherryDarling Posted February 21, 2010 Author Posted February 21, 2010 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. Quote
Zeggy Posted February 21, 2010 Posted February 21, 2010 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. Quote
Jordan Palmer Posted February 21, 2010 Posted February 21, 2010 So are you fixed up or not? :wacko: Quote
Zero-Affect Posted February 21, 2010 Posted February 21, 2010 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 Quote
CherryDarling Posted February 21, 2010 Author Posted February 21, 2010 I have it nearly fixed lol Fixing one thing upset another code tho Quote
Zero-Affect Posted February 21, 2010 Posted February 21, 2010 Lol strats you ain't having a good day eh :P Quote
Magictallguy Posted February 22, 2010 Posted February 22, 2010 Ah, my Bank PIN mod. Haven't seen that for a while.. I should really update that sometime lol Quote
Jordan Palmer Posted February 22, 2010 Posted February 22, 2010 I fixed this for him/her (If it's the same person) :) Quote
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.