making a query string

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • The Numerator

    making a query string

    Hi, I'm new to Google Groups (this is my first post or topic or
    whatever it's called). I'm also new to PHP. My knowledge in PHP extends
    to variables, basic fuctions, etc. I have a site with a MySQL 4.1.14
    database and I use phpMyAdmin 2.6.3-pl1.

    Suppose there's a page called videos.php. What do I need to do to get a
    page called:
    videos.php?name =matrix-ping-pong

    Also, it would be helpful if you tell me how to add more pages (well,
    it's really not a page, is it?) such as:
    videos.php?name =hamster-dance

    Thx!

  • samudas

    #2
    Re: making a query string

    I think what you want to do is build a database driven website. There
    are quite a few tutorials for this. Just do a quick search on google
    for "php database driven website" and i think you'll find your answer.

    Comment

    • Ian Collins

      #3
      Re: making a query string

      The Numerator wrote:[color=blue]
      > Hi, I'm new to Google Groups (this is my first post or topic or
      > whatever it's called). I'm also new to PHP. My knowledge in PHP extends
      > to variables, basic fuctions, etc. I have a site with a MySQL 4.1.14
      > database and I use phpMyAdmin 2.6.3-pl1.
      >
      > Suppose there's a page called videos.php. What do I need to do to get a
      > page called:
      > videos.php?name =matrix-ping-pong
      >[/color]
      Firstly, this isn't google groups, it's Usenet.

      Second, the page is videos.php. name=matrix-ping-pong is the data passed
      to the page. You can access the data though the super global array
      _GET[]. In this case, _GET['name'] = matrix-ping-pong.
      [color=blue]
      > Also, it would be helpful if you tell me how to add more pages (well,
      > it's really not a page, is it?) such as:
      > videos.php?name =hamster-dance[/color]

      Use a switch statement based on _GET['name'].

      --
      Ian Collins.

      Comment

      • fiziwig

        #4
        Re: making a query string

        Hi,
        Two weeks ago I had never even heard of php. Now I have about half of a
        nice (if I do say so myself) MySQL database driven web site coded and
        running. I would recommend the book "PHP and MySQL for dynamic web
        pages" by Larry Ullman. In less than two weeks that book has taken me
        from rank novice to fairly proficient in php. (Although I do have about
        a bazillion years experience with C++)

        Also, for those reading this on usenet, "Google Groups" is the only
        access that a lot of people (myself included) have to usenet, and most
        of those people don't even realize that Google Groups is just a front
        end to usenet. So, in all fairness, for a lot of people this forum is
        usenet, and for a lot of other people, this forum is "Google Groups."

        --gary

        Comment

        • Ian Collins

          #5
          Re: making a query string

          fiziwig wrote:[color=blue]
          > Hi,
          > Two weeks ago I had never even heard of php. Now I have about half of a
          > nice (if I do say so myself) MySQL database driven web site coded and
          > running. I would recommend the book "PHP and MySQL for dynamic web
          > pages" by Larry Ullman.[/color]

          The O'Reilly book "PHP and MySQL" is also a decent introductory text.[color=blue]
          >
          > Also, for those reading this on usenet, "Google Groups" is the only
          > access that a lot of people (myself included) have to usenet, and most
          > of those people don't even realize that Google Groups is just a front
          > end to usenet. So, in all fairness, for a lot of people this forum is
          > usenet, and for a lot of other people, this forum is "Google Groups."
          >[/color]
          True enough, as long as google groups users read
          <http://cfaj.freeshell. org/google/> to keep us cranky old Usenet users
          happy!

          --
          Ian Collins.

          Comment

          Working...