Create page from MySql data

Discussion in 'PHP' started by gilgil2, Jan 6, 2012.

  1. #1
    Hi

    I have a database of information and the code to get that data out of the database based on the url, it will be some like www.website.com/thekooks and then will display the information in the database for them.

    The bit I am struggling with is where do I put the code? I do not want to create a page for every entry and I think there is a way to do it but I don't even know what to search for in google.

    Can any tell me how to do this, or at least what I am looking for?

    Thanks
     
    gilgil2, Jan 6, 2012 IP
  2. adultwordpressthemes

    adultwordpressthemes Active Member

    Messages:
    102
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    83
    #2
    Post a sample of the data you are trying to retrieve, and how you would like it to be output. Like in a loop all in one page, or a list of items . etc..
     
    adultwordpressthemes, Jan 6, 2012 IP
  3. gilgil2

    gilgil2 Member

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Sorry, should have closed the thread, I found a solution.

    For future reference if anyone comes across this page the solution was to have a url such as http://www.website.com/artists.php?name=thekooks and then to put the script in artists.php and use $_GET to the 'name'. I didn't realise you could have artists.php and the above url and the url would execute the script.

    Thanks for trying to help though.
     
    gilgil2, Jan 6, 2012 IP