concatination error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Obadiah
Forum Regular
Posts: 580
Joined: Mon Jul 31, 2006 9:13 am
Location: Ashland, KY
Contact:

concatination error

Post by Obadiah »

im getting the error
Parse error: parse error, unexpected T_CONCAT_EQUAL

for this block of code

Code: Select all

if(@is_array($errors))
	{
		$message_2 = "";
		foreach($errors as $value)
		{
			message_2 .=$value." Please try again<br />";
		}
		include("fields_login.php");
		include("double_form.php");
		exit();
	}
specifically line 144 which is

Code: Select all

message_2 .=$value." Please try again<br />";
but i dont know why...i looked over it like five times....please help
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

missing a $.
toasty2
Forum Contributor
Posts: 361
Joined: Wed Aug 03, 2005 10:28 am
Location: Arkansas, USA

Post by toasty2 »

Like he said, you're missing a $

Code: Select all

message_2 .=$value." Please try again<br />";
should be

Code: Select all

$message_2 .=$value." Please try again<br />";
I think...
I could be wrong, I'm new to php :D
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

It is probably not necessary to reitterate Feyd's reply.
Post Reply