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] Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
xyn Posted September 24, 2006 Author Share Posted September 24, 2006 thx. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.