I have a script that deletes the user from my database as well as the users PHP file with his configurations... this is the part that is supposed to delete the file after I clicked on the USERID to be deleted:
$query = "SELECT login FROM funcionarios WHERE userid='$id'";
$result = mysql_query($query);
$row = mysql_fetch_object($result);
echo $row->login;
unlink($row->login.php);
The echo doesn't show anything, and the unlink command shows an error saying that the file does not exist. How could I go about deleting this file... I'm pretty sure there is some ugly error in my code, but I'm new to all this 😉
thanks,
ghjr