Jump to content

[SOLVED] unlink(): 'No error in...'


wrathican

Recommended Posts

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

Archived

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

×
×
  • Create New...

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.