Jump to content

Archived

This topic is now archived and is closed to further replies.

xyn

Unexpected error...

Recommended Posts

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]

Share this post


Link to post
Share on other sites
add [b];[/b] to the end of the unlink() line.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.