syntax error

dubpark

Registered
Parse error: syntax error, unexpected '$', expecting '(' in /home/junglebo/public_html/xaxa/1/register.php on line 85

79-101:

PHP:
if($skype == null) {
				$skype = "<center><div class='err'> Не е посочен skype. </div></center>";
				}
				else
				{

								[color=red]$("register").bind("onFail", function(e, errors)  {[/color]
 
	// we are only doing stuff when the form is submitted
	if (e.originalEvent.type == 'submit') {
 
		// loop through Error objects and add the border color
		$.each(errors, function()  {
			var input = this.input;
			input.css({borderColor: 'red'}).focus(function()  {
				input.css({borderColor: '#444'});
			});
		});
	}
}); 

}
else {
 
Кода между двата еlse-а ти е javascript, а не php. Трябва да го output-неш като стринг.
 

Горе