Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6807515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:50:30+00:00 2026-05-26T19:50:30+00:00

How are query strings ordered by hierarchy (in backend). How do you know which

  • 0

How are query strings ordered by hierarchy (in backend). How do you know which one should be instantiated? What is a good way to set up conditions for this? For example in facebook you can have two arguments:

http://www.facebook.com/profile.php?id=49300915&sk=photos
OR one
http://www.facebook.com/profile.php?id=49300915

What is a good way to organize this?
Like would

<?php

      if(isset($_GET['id'], $_GET['sk'])) {
    // Query...
    } else if(isset($_GET['id']) {
    // Query...
    }

    ?>
  • I put the 2 args before the 1 arg so the 1 arg doesn’t override the 2 args if the 1 arg isset (weird sentence there…).

    — How should this be ordered when you have tons of $_GET[‘variables’]? If I had 5 different arguments that could be passed, How would I order the conditions for which query is fired.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:50:31+00:00Added an answer on May 26, 2026 at 7:50 pm

    The order of a query string collection should not matter to you. This is not the same as a method signature.

    How you deal with different combinations is up to you, and it would depend entirely on what you were doing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In which situations should we use Query-Strings (VaryByParam) to achieve Caching in ASP.NET? Can
I'm trying to rewrite some query strings I have in my URL like this
Does anyone know how to return an ordered list of strings with null values
I have a linq query which returns results ordered by first letter. Is there
An HTTP GET query string is a ordered sequence of key/value pairs: ?spam=eggs&spam=ham&foo=bar Is,
I need to be able to allow query strings that contain characters like '<'
Is it possible to display all the query strings in Magento? I really like
During my work with databases I noticed that I write query strings and in
When you execute a SQL query, you have to clean your strings or users
How do I query for records ordered by similarity? Eg. searching for Stock Overflow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.