Jump to content

Recommended Posts

ok i gave up on my first task, but i need this done so i changed it to a different way now i dont know what i still cant delete it from the file..

 

any one see the problem?

if(isset($_POST['Submit'])){
$name=$_POST['delete'];
$qry = mysql_query("DELETE FROM tra_userpic WHERE picname='$name'")or die(mysql_error());
unlink('userpic/'.$name);
if($qry){
$thumb= mysql_query("DELETE FROM tra_userpic_thumb WHERE name='$name'")or die(mysql_error());
$ad='userpic/tn'.$name;
unlink($ad);
}
}

Link to comment
https://forums.phpfreaks.com/topic/38700-unlink/
Share on other sites

i want to delete the picture out of the folder..

 

delete has the value because it deletes the thumb and the original picture out of the

database.

but it don't from the folder..

 

and i got it in another script where unlik delete the pictures in the folder but i dont know why is not wokring..

Link to comment
https://forums.phpfreaks.com/topic/38700-unlink/#findComment-185891
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.