Do you have a field on the table which reference to the file? Please give the table fields. If you uploaded the file with the php script, can you share us your script to upload file? Thank you LuckyGuy354 IT Beginner http://www.wiwid.org ----- Original Message ----- From: "arvindsri123" <arvindsri123@xxxxxxxxx> To: <php-objects@xxxxxxxxxxxxxxx> Sent: Monday, March 31, 2008 10:42 PM Subject: Re: How delete file from folder > Hi, > > Thank you so much for reply...here is code i m pasting ..pls..take a > look and if possible please modify it, I m new in php. > >>>>>>>>>>> > > <?php > // Connecting, selecting database > require_once ('my_connection.php'); // Connect to the database. > > // Performing SQL query > $query = "DELETE FROM casestudies WHERE id=" . $_REQUEST['id']; > $result = mysql_query($query) or die('Query failed: ' . mysql_error()); > > header('Location: del_cs.php'); > ?> > > > > <<<<<<<<<<<<<<<<<<<<<< > > Thanks in advance! > > Arshi