I'm still trying to learn myself some more php and I'm currently working on a script to upload and remove images to and from my server. Now uploading is working all fine, also deleting from database isn't a problem. The only problem that occurs is removing the image itself from the uploads folder on my server.
Below is my code. The echo statement spits out the following url: 479_1293904366__sdc14139.jpg I honestly can't seem to find my mistake, and your help would be greatly appreciated.
Thanks in advance!
$unlinkafbeelding = "SELECT * FROM Afbeeldingen WHERE id = $ID";
$select = mysql_query($unlinkafbeelding) or die('Error, je bent een mongool');
$image = mysql_fetch_array($select);
echo($image['naam']);
unlink($image['naam']);