Jump to content


Photo

Unexpected error...


  • Please log in to reply
2 replies to this topic

#1 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 24 September 2006 - 08:08 PM

Hey Guys,
I get the below error; do i actually need the '{'...

Parse error: syntax error, unexpected '}' in /home/eumod/public_html/en/includes/functions.php on line 56

unlink("./global/images/private/$Av_name")
line 56: }

$sql = mysql_query("SELECT filename FROM avatar WHERE user='{$_SESSION['username']['usr_user']}'");
	while( $data = mysql_fetch_array( $sql, MYSQL_NUM ))
		{
	$av_name = $data[0];
		}
	if(file_exists("./global/images/private/$av_name"))
		{
	unlink("./global/images/private/$Av_name")
		}


#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 24 September 2006 - 08:14 PM

add ; to the end of the unlink() line.
Legend has it that reading the manual never killed anyone.
My site

#3 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 24 September 2006 - 08:18 PM

thx.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users