<?php if(isset($_REQUEST['action']))
{
$value=$_REQUEST['check'];
foreach($value as $ids)
{
$mdelete="DELETE FROM songs WHERE id='".$ids."'";
mysql_query($mdelete);
}
} ?>
ahsan1 0 Newbie Poster
Recommended Answers
Jump to PostDOn't use $_REQUEST if you can help it. Be specific with $_POST or $_GET.
Jump to PostHi ahsan1,
I suggest you to print_r first your variable "$_REQUEST" and if its getting value(not empty array) then only will go ahead with delete query.
It might be possible that you not getting any data and still trying to delete it.
Tips: In such cases, go …
All 5 Replies
vibhaJ 126 Master Poster

diafol
metalix 0 Posting Whiz in Training
phpuser 1 Junior Poster in Training
KamranArshad 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.