Php Parse Error Syntax Error Unexpected T_echo Expecting T_function
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings php parse error: syntax error, unexpected 'echo' (t_echo) and policies of this site About Us Learn more about Stack t_echo error php Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs syntax error unexpected echo t_echo expecting Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; echo php it only takes a minute: Sign up Parse error: syntax error, unexpected T_ECHO in [closed] up vote 2 down vote favorite What is causing this error? Parse error: syntax error, unexpected T_ECHO in C:\wamp\www\game\rankings.php on line 19 Here is the code
Battle Players
Php Checker
Rank | Username | Gold |
". $row['overall']. " | "; $get_user = mysql_query("SELECT `username` FROM `user` WHERE `id`='".$row['id']."'") or die(mysql_error()); $rank_name = mysql_fetch_assoc($get_user); echo "" . $rank_name['username'] . " | "; $get_gold = mysql_query("SELECT `gold` FROM `stats` WHERE `id`='".$row['id']."'") or die(mysql_error()); $rank_gold = mysql_fetch_assoc($get_gold); echo "" . number_format($rank_gold['gold']) . " | "; echo "
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PHP Parse error: syntax error, unexpected T_ECHO in up vote 0 down vote favorite Trying to run this http://stackoverflow.com/questions/15689501/parse-error-syntax-error-unexpected-t-echo-in single line of code and getting a syntax error, unexpected T_ECHO ...from what I can tell by searching it must have something to do with mis-use of { or ' maybe? I have numerous combinations to no avail? Any ideas? echo(shell_exec('php -q /feeds/sancap/vrets/run_interactive_job.php /feeds/sancap/vrets/batch_control_files/Land')); php syntax-error share|improve this question edited Mar 13 '12 at 12:33 hakre 134k26216390 asked Mar 13 '12 at 12:11 Rocco The Taco 1,15331749 Any clue as http://stackoverflow.com/questions/9683761/php-parse-error-syntax-error-unexpected-t-echo-in to the contents of /feeds/sancap/vrets/run_interactive_job.php? –TRiG Mar 13 '12 at 12:12 I have run your code but does not get any error –Hkachhia Mar 13 '12 at 12:13 2 You will need to post the previous line(s), the error is not in the one you posted. –soulmerge Mar 13 '12 at 12:13 add a comment| 1 Answer 1 active oldest votes up vote 5 down vote You didn't terminate/close the previous statement properly. share|improve this answer answered Mar 13 '12 at 12:12 Ignacio Vazquez-Abrams 447k64800956 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged php syntax-error or ask your own question. asked 4 years ago viewed 2934 times active 4 years ago Related 2674Reference - What do
Detected You currently have javascript disabled. Several functions may not work. Please https://forums.phpfreaks.com/topic/215039-unexpected-t-echo-expecting-or-error-help/ re-enable javascript to access full functionality. unexpected T_ECHO, expecting ',' or ';' Error help Started by slayer__, Oct 03 2010 12:01 PM Please log in to reply 6 replies to this topic #1 slayer__ slayer__ Newbie New Members 4 posts Posted 03 October 2010 - 12:01 PM i found this site in syntax error google and i hope you can help me I'm takin error with my sites function page. Could somebody check and fix the error pls? Error: Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in D:\Hosting\5839943\html\site\wp-content\themes\theme\functions.php on line 39 line: echo "143191220"echo $contentecho " [...]"strlen; code: ", "]]>", $content); $content=strip_tags($content); while (0<$_GET()) { echo "143191220"echo $contentecho " [...]"strlen; } } while ($max_char