Hi I\'ve this problem
There is this form from where a user can delete his ads from the db. Now the the records get deleted but Im unable to unlink (delete) those images associated with the records. How do i chk whether the image from the array is associated with the record.
Below is the code dat is the input of the form
<input type=\"checkbox\" name=\"list[]\" value=\"<? echo $row[\'fldbkid\'] ?>\">
<input type=\"hidden\" name=\"img[]\" value=\"<? echo $row[\"fldbkimage\"] ?>\">
if ($page==\"delete\")
{
for ($j=0; $j < count($list); $j++)
{
unlink( $img[$j] );
$dquery = \"delete from items where id=$list[$j]\";
$dresult = mysql_query($dquery) or die(\"Query failed 1\");
}
header(\"Location: delete.php\");
}
Plz Help!
THanz