function Delete_v2($db,$table_name, $where_clause=){   

  $whereSQL = ;

  if(!empty($where_clause)) {

    if(substr(strtoupper(trim($where_clause)), 0, 5) != WHERE) {

      $whereSQL =  WHERE .$where_clause;

    } else {

      $whereSQL =  .trim($where_clause);

    }

  }

  $sql = DELETE FROM `.$table_name.` .$whereSQL;

  $dt[sql]=$sql.;;

  if(mysqli_query($db,$sql)) {

    $dt[result]=Success;

  } else {

    $dt[result]=Error;    

  }  

  return json_encode($dt);

}