So I've gotten down to this.
I have a line of php code that does this...
$submission->numfiles --;
this obviously removes files that I have uploaded.
I also have this line...
$filecount-> $this->count_user_files($USER->id);
the problem is is that after I have removed the files. This line still says that the files are there and thus the page still shows the files there even when the files are no longer there.
I have reason to believe that this is a mysql problem. That mysql is not deleting the files. I am new to both mysql and php so I have very little expertise. Any help would be appreciated. TIA
I have a line of php code that does this...
$submission->numfiles --;
this obviously removes files that I have uploaded.
I also have this line...
$filecount-> $this->count_user_files($USER->id);
the problem is is that after I have removed the files. This line still says that the files are there and thus the page still shows the files there even when the files are no longer there.
I have reason to believe that this is a mysql problem. That mysql is not deleting the files. I am new to both mysql and php so I have very little expertise. Any help would be appreciated. TIA