The best way to do a dynamic web page

Discussion in 'PHP' started by buckmajor, Sep 4, 2008.

  1. #1
    Hi there

    I have my website done in php:
    www.mysite.com/index.php

    I always wondered why some dynamic web pages in php have this link

    http://www.yourWebsite.com/yourscript.php?id=123

    I guess my question is, is the above link a more advanced way of doing dynamic web pages in php?

    Im willing to learn anyway of improving in php.

    Many thanks in advance

    CHEERS :)
     
    buckmajor, Sep 4, 2008 IP
  2. Shoro

    Shoro Peon

    Messages:
    143
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Shoro, Sep 5, 2008 IP
  3. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It depends on what exactly is dynamic/what the page is used for. For example, if the dynamic page is simply a home page with a custom message for each user, then the page does not need the latter, however for something like a shop with products, you would need the display.php?p=75 to tell the page what product to display in your catalog. You can always change this with url rewriting to have pretty urls like

    yourdomain.com/product/75
    which will again show the products dynamically, or even change the 75 so its the product name,ie
    yourdomain/product/product-name-here
     
    JAY6390, Sep 5, 2008 IP
  4. buckmajor

    buckmajor Active Member

    Messages:
    574
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Thanks guys, that link lead me to w3school website and there is a lot of useful php resources.
     
    buckmajor, Sep 5, 2008 IP