Need help for $unlink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,

I am storing/inserting 10 images in a database and files stored
in"uploads" folder.

Now I am using below code to delete all , here is code. but its only
deleting from database, all the images are still existing in "uploads"
folder. I want to delete them(images) too when i run below script.

<?php 
$m_id = $_REQUEST['m_id'];
$query = "DELETE FROM model_photos WHERE m_id='$m_id'";
	$result = mysql_query($query) or die('Query failed: ' . mysql_error());

?>

waiting for positive response....will be thank full to you.

Thanks,
Avi


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux