alin19 Posted October 13, 2008 Share Posted October 13, 2008 i have a webpage witch alows you to add a picture on the server, it uploads the picture in a folder and it's name in a database, this works just fine, but now i have a button that when i press that picture name is deleted from the database but the picture from that folder i can't delete it, i've tryed this comand: $delS=$conexiune->select("select `nume_poza` from `poze_upload` where `id`='$id_sters'"); $update=$conexiune->update("delete from `poze_upload` where `id`='$id_sters'"); $delF=$update[0]['nume_poza']; unlink("../poze_produse/$delF"); Link to comment https://forums.phpfreaks.com/topic/128265-delete-files-from-server/ Share on other sites More sharing options...
waynew Posted October 13, 2008 Share Posted October 13, 2008 Have you tried doing some debugging? error_reporting(E_ALL); Place that before your code. Link to comment https://forums.phpfreaks.com/topic/128265-delete-files-from-server/#findComment-664425 Share on other sites More sharing options...
DarkWater Posted October 13, 2008 Share Posted October 13, 2008 Actually, Wayne, he'd want: ini_set('display_errors', 1); error_reporting(E_ALL); Link to comment https://forums.phpfreaks.com/topic/128265-delete-files-from-server/#findComment-664428 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.