Page 1 of 1

concatination error

Posted: Wed Aug 09, 2006 4:28 pm
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

Posted: Wed Aug 09, 2006 4:33 pm
by feyd
missing a $.

Posted: Wed Aug 09, 2006 4:39 pm
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

Posted: Wed Aug 09, 2006 4:43 pm
by RobertGonzalez
It is probably not necessary to reitterate Feyd's reply.