wrathican Posted September 17, 2008 Share Posted September 17, 2008 getting error 'No error in *' when using unlink this is the code im using <?php $delete = unlink($db_image['image_url']); if(!$delete) { # delete failed - redirect? header('Location: '); }else{ # delete success - delete from table $db_del = $d->db_delete('image', "id = '{$value}'"); if(!$db_del) { # db delete was unsuccessful - redirect? header ('Location: '); }else{ #db delete was success - redirect with message header ('Location '); } // end delete } // end unlink ?> using windows XP Pro SP2 and WAMP 5 (PHP 5.2.6) Link to comment https://forums.phpfreaks.com/topic/124615-solved-unlink-no-error-in/ Share on other sites More sharing options...
waynew Posted September 17, 2008 Share Posted September 17, 2008 The image url that you're getting from your db okay? Link to comment https://forums.phpfreaks.com/topic/124615-solved-unlink-no-error-in/#findComment-643605 Share on other sites More sharing options...
wrathican Posted September 17, 2008 Author Share Posted September 17, 2008 bah, i wasnt accessing the correct array value stupid 2dimensional arrays.. or me... one or the other... Link to comment https://forums.phpfreaks.com/topic/124615-solved-unlink-no-error-in/#findComment-643627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.