What I want is that when I delete a record in the DB the images attached to that record also being deleted.
[man]unlink[/man]
Originally posted by LordShryku [man]unlink[/man]
that was fast, thx 😃
I can´t get it works.
$pic=$row_delete['URL']; if(file_exists($pic) unlink($pic);
that code in the line of the unlink throw this error:
Parse error: syntax error, unexpected T_STRING
There is a error in the code ?
Missing an end paren here
if(file_exists($pic)
yeah topic close
Please click the "Mark Thread Resolved" link at the bototm of this page K-MUS.