Home > Parse Error > Parse Error Syntax Error Unexpected T_return Expecting T_while

Parse Error Syntax Error Unexpected T_return Expecting T_while

asked 6 years ago viewed 11017 times active 3 years ago Related 344PHP expects T_PAAMAYIM_NEKUDOTAYIM?2Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION1php Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION on Foros del Web » Programando para Internet » PHP » Parse error: syntax error, unexpected T_RETURN, expecting T_WHILE Estas en el tema de Parse error: syntax error, unexpected T_RETURN, expecting T_WHILE Hola, necesito ayuda, no encuentro el error o no se cual es el error. Keep in mind that when getting an error in PHP, 9/10 times the error isn't on the line indicated. have a peek here

Tried my best, I looked up some stuff and they said that it could be the line above the error line (btw the error line is the "return mysql_insert_id();). When did the coloured shoulder pauldrons on stormtroopers first appear? Currently it is outside or you have one } on the wrong line. if (λ x . http://stackoverflow.com/questions/3667556/syntax-error-unexpected-t-return-expecting-t-function-oop-php

current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Join them; it only takes a minute: Sign up Parse error: syntax error, unexpected T_RETURN in ___ on line 51 [closed] up vote -1 down vote favorite I'm trying to fetch are the integers modulo 4 a field? Jim Says: June 19th, 2012 at 11:59 pm This may be the problem, but what line would it complain about?

Similar 41792 / 34177 / 6122 : 12.04.2006 : 57,940 05.12.2012, 03:23 , : Parse error: syntax error, unexpected '.', expecting ')' in : mysql_get_proto_info($this->database_connection) : FALSE ); } // END database_get_proto_info() METHOD // // THIS METHOD GETS MYSQL SERVER Linked 0 Parse and syntax error, unexpected T_RETURN Related 0Parse and syntax error, unexpected T_RETURN0Unexpected syntax and parse error T_RETURN0Parse error: syntax error, unexpected T_RETURN in C:\wamp\www\Nu-Bio\view_topic.php on line 77-5Parse error: Why is AT&T's stock price declining, during the days that they announced the acquisition of Time Warner inc.?

freelancer.internet.com 03-29-2006,07:59 PM #3 lpxxfaintxx View Profile View Forum Posts Junior Member Join Date Mar 2006 Posts 20 What's wrong with it? 03-29-2006,08:35 PM #4 bpat1434 View Profile View Forum Posts Watch out for that stuff. What game is this picture showing a character wearing a red bird costume from? http://stackoverflow.com/questions/8129978/parse-error-syntax-error-unexpected-t-return Browse other questions tagged php pecl or ask your own question.

Solucionado. Tienes una mejor respuesta a este tema? Quires hacerle una pregunta a nuestra comunidad y sus expertos? This helped me fix this otherwise puzzling bug. Do these physical parameters seem plausible? Student discount for Frankfurt Radio Symphony Orchestra Digital Alarm Clock What game is this picture showing a character wearing a red bird costume from?

Ahora son las 17:50. his explanation Was the Boeing 747 designed to be supersonic? David Cobb Says: October 26th, 2010 at 4:50 pm I agree with the post above and I will find more information from google. Extreme Value Theorem on Manifold Why can't I set a property to undefined?

Glossy material rendering black, in a scene with environment and emission lighting more hot questions default about us tour help blog chat data legal privacy policy work here advertising info mobile http://back2cloud.com/parse-error/parse-error-syntax-error-unexpected-t-string-expecting-t-function-in-joomla.php more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed All rights reserved. If this is your code, you might want to fix it.

Why do jet engines smoke? Subscribe here Contact Us OpenCart Limited, Unit 16, 26/F, Tuen Mun Central Square, 22 Hoi Wing Road, Tuen Mun, Hong Kong +852 24990996 Send email via our contact form Copyright © TRUE : FALSE ); if( $query_result ) $this->log_data_totals['success']++; else $this->log_data_totals['failed']++; } http://back2cloud.com/parse-error/parse-error-syntax-error-unexpected-t-string-expecting-t-function-joomla.php Awesome Managed Dedicated servers!!

Well thank you :D –user1043816 Nov 15 '11 at 0:16 Glad to help :) –AlienWebguy Nov 15 '11 at 0:24 2 @user1043816 you should click the check mark add a comment| 2 Answers 2 active oldest votes up vote 4 down vote accepted Missing a closing paren: function user_register($email, $name, $password) { $email = mysql_real_escape_string($email); $name = mysql_real_escape_string($name); mysql_query("INSERT function user_register($email, $name, $password) { $email = mysql_real_escape_string($email); $name = mysql_real_escape_string($name); mysql_query("INSERT INTO 'users' VALUES ('', '$email', '$name', '".md5 ($password)."')" return mysql_insert_id(); } php sql share|improve this question asked Nov 15

x x) has a type, then is the type system inconsistent?

add a comment| 2 Answers 2 active oldest votes up vote 9 down vote Your return statement should come before the last closing brace. Why isn't tungsten used in supersonic aircraft? A return statement is outside of a function, and because there cannot be any commands besides function declarations outside of a function that is in a class, it is causing an Why do units (from physics) behave like numbers?

It can't be recovered by any Error Handling (or) Exception Handling techniques. Browse other questions tagged php sql or ask your own question. sort command : -g versus -n flag more hot questions lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life http://back2cloud.com/parse-error/parse-error-syntax-error-unexpected-t-string-expecting-t-function-wordpress.php tr command has no effect when used in $() and saved in a variable Is this alternate history plausible? (Hard Sci-Fi, Realistic History) Is a rebuild my only option with blue

What kind of weapons could squirrels use? Browse other questions tagged php syntax or ask your own question. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting." – Michael Berkowski, Tomasz Kowalczyk, nickhar"Questions asking for code must demonstrate Contctenos - Archivo - Poltica de Privacidad - Polticas de uso - Arriba Foros del Web Un proyecto de Maestros del Web Licencia de contenidos: Creative Commons BY-NC-SA

Join them; it only takes a minute: Sign up syntax error, unexpected T_RETURN, expecting T_FUNCTION oop php [closed] up vote 2 down vote favorite Im receiving an error as stated above. Join them; it only takes a minute: Sign up Parse error: syntax error, unexpected T_RETURN [closed] up vote 0 down vote favorite Getting this Problem. KGF2009 Says: July 12th, 2010 at 1:33 am Though I'm sure this is rare, but it could happen if you declare a lot of functions in your class, this error will