PHP Help
| From: | markitos andré | Date: | Wed, 21 Sep 2011 19:27:33 +0000 |
| Subject: | PHP Help | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-12234@lists.php.net to get a copy of this message | ||
Hi,
My name is Marcos and i'm new in PHP. I have a situation, my site have a form with uploadfile ,
and the data goes to my BD in MySQL and the pdf goes to a paste. My BD have a field with the file
name. Is it possible when i delete the row, delete the file too? Like this, when i use the MySQL
code to delete the row:
$remover="delete from produtos where id_produto='$_GET[id_produto]'";$result =
mysql_query($remover);
So when i make this, i want to delete the correponding file in the paste, how i do this? Is it
possible? I dont know if this mail goes to the right people, but im very grateful if you help me.
Best RegardsMarcos