Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't delete files

Status
Not open for further replies.

mikel25

Programmer
Jun 15, 2006
9
US
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
Sorry, but it's not obvious to me. All I have seen your code do is decrement an object variable. I see no code that would delete a file, nor can I, being ignorant of your class code, infer such a deletion.

I also have this line...

$filecount-> $this->count_user_files($USER->id);
That line should generate a parse error.


I have reason to believe that this is a mysql problem. That mysql is not deleting the files.
Are these files being stored in a MySQL database?


I'm sorry, but you seem to be asking very specific questions while only giving the vaguest of descriptions of the problem. I can't speak for anyone else, but I can't answer your question given the information you have presented.



Want the best answers? Ask the best questions! TANSTAAFL!
 
sorry about that. I was in a hurry and almost running out the door. I'll repost.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top