Parse error: syntax error, unexpected end of file

I’m following a certain tutorial on how to display post using a filter dropdown.

https://spruce.it/noise/two-category-dropdown-search-filter-in-wordpress/

I’m getting a “Parse error: syntax error, unexpected end of file” whenever i press the search button to retrieve the post.

    <?php

    if (($_GET['location'] != -1) && ($_GET['price'] != -1)):
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts(
       array(
          'orderby' => 'date',
          'order' => 'DESC',
          'paged' => $paged,
          'posts_per_page' => 6,
          'category__and' => array(
             $_GET['price'],
             $_GET['location']
          ),
       )
    );
    ?>

I’m almost finished and i think this is the only problem

Did you forget the last key=>value pair of your query_posts array?

Hmm what do you mean by last key?

The query_posts array has comma suggesting another to follow, but instead there’s a closing parenthesis.