xyn Posted September 24, 2006 Share Posted September 24, 2006 Hey Guys,I get the below error; do i actually need the '{'...[color=red]Parse error: syntax error, unexpected '}' in /home/eumod/public_html/en/includes/functions.php on line 56[/color]unlink("./global/images/private/$Av_name")[color=green]line 56: }[/color][code=php:0]$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") }[/code] Link to comment https://forums.phpfreaks.com/topic/21884-unexpected-error/ Share on other sites More sharing options...
AndyB Posted September 24, 2006 Share Posted September 24, 2006 add [b];[/b] to the end of the unlink() line. Link to comment https://forums.phpfreaks.com/topic/21884-unexpected-error/#findComment-97737 Share on other sites More sharing options...
xyn Posted September 24, 2006 Author Share Posted September 24, 2006 thx. Link to comment https://forums.phpfreaks.com/topic/21884-unexpected-error/#findComment-97741 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.