I have this T_PAAMAYIM_NEKUDOTAYIM error before but in a different scenario. I can’t resolve how to fix this after searching google.
I tried self::$deleteFile and $this->deleteFile in both cases, but it didn’t do anything, can anyone give me advice please. The Query returns properly, and the name outputs correctly, It’s that unset thing giving me trouble.
class File
{
// just showing the problem here
public function Remove($uniqueID)
{
/** Get the File name */
$this->DB->Query("
SELECT file
FROM files
WHERE `id` = $uniqueID
LIMIT 1
");
$deleteFile = $this->DB->Get('file');
/** Delete the File */
unset(UPLOAD . $deleteFile); // This is the line causing the error
}
}