Show diffrent results from a database what to use

Discussion in 'Programming' started by TheSyndicate, Mar 8, 2009.

  1. #1
    If i have a database with lets say

    Age
    Country
    Sex
    Hair Color


    If i want to have tabs where people can lists people in diffrent countries from A-Z and one tab where they can list people according to age from 0-99.

    What do i use to show this diffrent results from the database? Ajax or something?
     
    TheSyndicate, Mar 8, 2009 IP
  2. yoes_san

    yoes_san Peon

    Messages:
    443
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    depends on what you have in DB
    you should merge information about Age, Country, Sex, Hair Color into record of a "Person".

    and then when you want to display these information in tabs you can issues db command like
    first tab: select all persons order by country name
    second tab: select all persons order by person age

    these have nothing to do with AJAX I'd say it's more about DB structure and queries
     
    yoes_san, Mar 9, 2009 IP
  3. TheSyndicate

    TheSyndicate Prominent Member

    Messages:
    5,410
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    365
    #3
    ah but is not ajax a nice way to display it?
     
    TheSyndicate, Mar 9, 2009 IP
  4. yoes_san

    yoes_san Peon

    Messages:
    443
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes ajax/javascript is a nice way to display queried data
     
    yoes_san, Mar 9, 2009 IP
  5. TheSyndicate

    TheSyndicate Prominent Member

    Messages:
    5,410
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    365
    #5
    yes is there anyway to find a ajax script like this in a easy way.
     
    TheSyndicate, Mar 9, 2009 IP
  6. yoes_san

    yoes_san Peon

    Messages:
    443
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yoes_san, Mar 9, 2009 IP
  7. TheSyndicate

    TheSyndicate Prominent Member

    Messages:
    5,410
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    365
    #7
    ok thanks what was your search?
     
    TheSyndicate, Mar 10, 2009 IP
  8. yoes_san

    yoes_san Peon

    Messages:
    443
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    php query mysql
    and
    ajax tab
     
    yoes_san, Mar 10, 2009 IP
    TheSyndicate likes this.