Need help with linking

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nagendra802000
    New Member
    • Feb 2010
    • 1

    Need help with linking

    Hi All,

    I have created a search engine for MP3 with mysql database. Now I want
    to connect each search result with its respective info page which will
    consist with name of the artist, size, year, and so on. Dose anyone
    knows how to do it? I did created few static pages with all these
    info. But its impossible to create for thousands of MP3s. Please help
    me.

    Best,
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    It's simple:
    • Create a PHP page that takes the ID of a MP3 record from your database as a GET parameter. Then have it fetch the info for that MP3 from the database and display it.
    • Have your search page create links to that PHP file for each MP3 it displays in the result of a search, passing along the ID of the MP3 as a GET parameter (See here).


    This is one of the most basic PHP concepts every PHP developer needs to be familiar with.

    Try it out, see if you can't get it to work. If you have any specific problems, post them here and we will take a look. Make sure to post any relevant code examples and error messages as well.

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      What Atli describes is known as dynamic-content and is, a he says, a fundamental part of today's web. Pretty much all large sites employ this technique, even the one you're on now.

      Markus.

      Comment

      Working...