hi guyz…i was stuck with my project for past few days because my delete function not working…now it working but not accurate…if i use…
[php]
<?php
$sql = “select *from details”;
$query = @mysql_query($sql);
$countData = @mysql_num_rows($query);
?>
{
echo "delete
";
}?> <?php if (isset($_REQUEST['delete'])) $select ="DELETE from details where amount = '$nt[amount]'"; $querys = @mysql_query($select); $countDatas = @mysql_num_rows($querys); ?>
[/php]…it doest work…if i took out the isset($_REQUEST(delete))…its working…but delete the data directly even i didnt hit the delete button…
[php]
<?php
$sql = “select *from details”;
$query = @mysql_query($sql);
$countData = @mysql_num_rows($query);
?>
{
echo "delete
";
}?> <?php //if (isset($_REQUEST['delete'])) $select ="DELETE from details where amount = '$nt[amount]'"; $querys = @mysql_query($select); $countDatas = @mysql_num_rows($querys); ?>
[/php]…please help…im realy have no idea…and my project getting very late…thanks in advanced