if(count($tb[delfld])>=2)
{
$tem1=$tb[fld][$tb[delfld][0]];
$tem2=$tb[fld][$tb[delfld][1]];
$sqltxtdel="delete From $tb[deltab] where $tem1='$delid' and $tem2='$delid2' limit 1";
$resultdel= mysql_query($sqltxtdel);
}
else
{
$tem=$tb[fld][$tb[delfld]];
$sqltxtdel="delete From $tb[deltab] where $tem='$delid' limit 1";
$resultdel= mysql_query($sqltxtdel);
}
if(count($tb[delfld])==4)
{
$tem1=$tb[fld][$tb[delfld][0]];
$tem2="term";
$tem3=$tb[fld][$tb[delfld][2]];
$tem4=$tb[fld][$tb[delfld][3]];
$sqltxtdel="delete From $tb[deltab] where $tem1='$delid' and $tem2='$delid2' and $tem3='$delid3' and $tem4='$delid4' limit 1";
$resultdel= mysql_query($sqltxtdel);
}